:root {
    --primary-color: #f7a70b;
    --primary-hover: #e09608;
    --sidebar-bg: #0a2540;
    --sidebar-hover: #173859;
    --sidebar-active: #173859;
    --body-bg: #f4f6f8;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e9ecef;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-header i {
    color: var(--info-color);
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    flex-grow: 1;
}

.sidebar-menu li {
    padding: 0.25rem 1rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu li.active a {
    background-color: var(--sidebar-active);
    color: var(--white);
}

.sidebar-menu a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.badge-coming-soon {
    font-size: 0.6rem;
    padding: 0.2em 0.4em;
    margin-left: auto;
    font-weight: 500;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-bg);
    margin-right: 0.75rem;
    overflow: hidden;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.logout-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.user-profile:hover .logout-icon {
    color: var(--white);
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.top-navbar {
    background-color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.page-title span.text-primary-custom {
    color: var(--primary-color);
    font-weight: 600;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.btn-outline-primary-custom {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background-color: transparent;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.notification-bell {
    position: relative;
    color: var(--text-dark);
    font-size: 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    padding: 2rem;
}

/* Dashboard Cards */
.stat-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: none;
    height: 100%;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon {
    background-color: var(--body-bg);
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.positive {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Recent Activity List */
.activity-card {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    border: none;
}

.activity-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.activity-text {
    margin: 0;
    font-size: 0.875rem;
}

.activity-text strong {
    font-weight: 600;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Filter Bar & Tabs */
.filter-tabs {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    box-shadow: var(--card-shadow);
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.filter-tab.active {
    background: var(--body-bg);
    color: var(--text-dark);
    font-weight: 600;
}

.filter-count {
    background: var(--border-color);
    color: var(--text-dark);
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    font-weight: 600;
}

.filter-tab.active .filter-count {
    background: var(--primary-color);
    color: var(--white);
}

.search-bar-container {
    display: flex;
    gap: 1rem;
}

.search-input-group {
    position: relative;
    flex-grow: 1;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: transparent;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-filter {
    background-color: var(--border-color);
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Job Cards */
.job-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 1rem;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.job-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.job-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.job-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.job-stat-item {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.job-stat-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-open {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}
.status-open::before { background-color: var(--success-color); }

.status-paused {
    background-color: rgba(255, 193, 7, 0.1);
    color: #b38600;
}
.status-paused::before { background-color: var(--warning-color); }

.status-filled {
    background-color: rgba(13, 202, 240, 0.1);
    color: #087f96;
}
.status-filled::before { background-color: var(--info-color); }

.status-draft {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--text-muted);
}
.status-draft::before { background-color: var(--text-muted); }


/* Application Table */
.table-custom {
    width: 100%;
    margin-bottom: 0;
}

.table-custom th {
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 1rem;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.candidate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
}

.candidate-name {
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.candidate-email {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-pill {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pill.shortlisted { background-color: rgba(25, 135, 84, 0.1); color: var(--success-color); }
.status-pill.rejected { background-color: rgba(220, 53, 69, 0.1); color: var(--danger-color); }
.status-pill.reviewed { background-color: rgba(13, 202, 240, 0.1); color: #087f96; }
.status-pill.new { background-color: rgba(247, 167, 11, 0.1); color: #b37300; }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .top-navbar {
        padding: 1rem 0.5rem;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    .top-actions {
        gap: 0.5rem;
    }
    
    .top-actions .btn-primary-custom {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .search-bar-container {
        flex-direction: column;
    }
    
    .search-input-group {
        width: 100%;
    }
    
    .search-bar-container select, 
    .search-bar-container .btn-filter {
        width: 100% !important;
    }
}

/* Filter Sidebar specific styles */
.custom-filter-input {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}
.custom-filter-input .form-control:focus {
    box-shadow: none;
    border-color: var(--border-color);
}
.custom-filter-input .input-group-text {
    border-color: var(--border-color);
}

.filter-pill {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
}
.filter-pill:hover {
    background-color: var(--body-bg);
}
.btn-check:checked + .filter-pill {
    background-color: rgba(247, 167, 11, 0.1);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.filter-num-input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.filter-num-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
/* Hide number input arrows */
.filter-num-input::-webkit-outer-spin-button,
.filter-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filter-num-input[type=number] {
  -moz-appearance: textfield;
}

.btn-white {
    background-color: var(--white);
    color: var(--text-dark);
    transition: all 0.2s;
}
.btn-white:hover {
    background-color: var(--body-bg);
}

/* Wizard Styles */
.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 1rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
    text-align: center;
}

.step-indicator.active .step-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
}

.step-indicator.active .step-label {
    color: var(--text-dark);
}

.step-indicator.completed .step-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
}

.step-indicator.completed .step-label {
    color: var(--text-dark);
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1rem;
    position: relative;
    top: -10px;
    z-index: 1;
    transition: all 0.3s;
}

.step-line.completed {
    background-color: var(--primary-color);
}



/* Profile Page Styles */
.profile-header-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    background-color: #e9ecef;
    color: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-right: 1.5rem;
    position: relative;
}

.profile-avatar-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background-color: #0d6efd;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid white;
    cursor: pointer;
}

.profile-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-info p {
    margin: 0;
    color: var(--text-muted);
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.profile-actions .btn-change-password {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-actions .btn-logout {
    background-color: #fff1f0;
    color: #d93025;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.detail-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.detail-card-header a {
    color: #0d6efd !important;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.office-sub-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
