/* 
 * Human Capital HRIS - Custom Brand Theme
 * Brand Colors and Overrides
 */

:root {
    /* Human Capital Brand Colors */
    --hc-primary: #123F5E;
    --hc-primary-light: #1e5f7e;
    --hc-primary-dark: #0d2d42;
    --hc-primary-rgb: 18, 63, 94;
    
    /* Bootstrap Override */
    --bs-primary: #123F5E;
    --bs-primary-rgb: 18, 63, 94;
}

/* Primary Button Override */
.btn-primary {
    background-color: var(--hc-primary);
    border-color: var(--hc-primary);
}

.btn-primary:hover {
    background-color: var(--hc-primary-light);
    border-color: var(--hc-primary-light);
}

.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--hc-primary-rgb), 0.5);
}

.btn-outline-primary {
    color: var(--hc-primary);
    border-color: var(--hc-primary);
}

.btn-outline-primary:hover {
    background-color: var(--hc-primary);
    border-color: var(--hc-primary);
}

/* Badge Primary Override */
.badge-primary {
    background-color: var(--hc-primary);
}

/* Text Primary Override */
.text-primary {
    color: var(--hc-primary) !important;
}

/* Link Override */
a {
    color: var(--hc-primary);
}

a:hover {
    color: var(--hc-primary-dark);
}

/* Progress Bar Override */
.progress-bar {
    background-color: var(--hc-primary);
}

/* Form Control Focus */
.form-control:focus {
    border-color: var(--hc-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--hc-primary-rgb), 0.25);
}

/* Custom Select Focus */
.custom-select:focus {
    border-color: var(--hc-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--hc-primary-rgb), 0.25);
}

/* Notification System Brand Colors */
.notification-header {
    background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-primary-light) 100%) !important;
}

.notification-stat .number {
    color: var(--hc-primary) !important;
}

.category-filter:hover, 
.category-filter.active {
    background: var(--hc-primary) !important;
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(var(--hc-primary-rgb), 0.05) 0%, transparent 100%) !important;
    border-left: 4px solid var(--hc-primary) !important;
}

.btn-icon:hover {
    background: var(--hc-primary) !important;
    border-color: var(--hc-primary) !important;
}

/* Sidebar Active Menu Items */
#sidebar-menu .has-arrow.active,
#sidebar-menu .mm-active > a {
    color: var(--hc-primary) !important;
}

/* Topbar Brand Area */
.navbar-brand {
    color: var(--hc-primary) !important;
}

/* Card Headers with Brand Color */
.card-header.bg-primary {
    background-color: var(--hc-primary) !important;
}

/* Table Headers with Brand Color */
.table thead th {
    border-bottom-color: var(--hc-primary);
}

/* Custom Human Capital Components */
.hc-brand-bg {
    background-color: var(--hc-primary) !important;
    color: white !important;
}

.hc-brand-text {
    color: var(--hc-primary) !important;
}

.hc-brand-border {
    border-color: var(--hc-primary) !important;
}

.hc-brand-border-left {
    border-left: 4px solid var(--hc-primary) !important;
}

.hc-brand-shadow {
    box-shadow: 0 4px 8px rgba(var(--hc-primary-rgb), 0.15) !important;
}

/* Status Colors (complementary to brand) */
.status-approved {
    color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1);
}

.status-pending {
    color: #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.1);
}

.status-rejected {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
}

.status-urgent {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545 !important;
}

/* Human Capital Specific Enhancements */
.hc-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.hc-card-header {
    background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-primary-light) 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.25rem;
}

.hc-btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Loading Spinner with Brand Color */
.spinner-border-primary {
    color: var(--hc-primary);
}

/* Human Capital Logo Area */
.brand-logo {
    filter: brightness(0) saturate(100%) invert(16%) sepia(25%) saturate(1654%) hue-rotate(183deg) brightness(94%) contrast(96%);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --hc-primary-light: #4a7c9d;
        --hc-primary-dark: #0a1f2e;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hc-card-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .hc-btn {
        padding: 0.375rem 1rem;
        font-size: 0.85rem;
    }
}