:root {
    --primary-color: #4361ee;
    --primary-light: rgba(67, 97, 238, 0.1);
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --info-color: #43aa8b;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;

    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --top-nav-height: 70px;

    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    color: var(--dark-color);
    overflow-x: hidden;
}

.admin-dashboard {
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 1.75rem;
    margin-right: 0.75rem;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.logo-text span {
    font-weight: 300;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    display: none;
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav {
    flex-direction: column;
    padding: 0 1rem;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.nav-link span {
    flex: 1;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: var(--transition);
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.sub-menu {
    padding-left: 2.5rem;
    margin-top: 0.5rem;
}

.sub-menu .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.sidebar-footer {
    padding: 0.5rem;
}

.user-profile-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.profile-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    transition: var(--transition);
}

.top-nav {
    height: var(--top-nav-height);
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.page-title {
    font-weight: 600;
    color: var(--dark-color);
}

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

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--gray-light);
    font-size: 0.875rem;
    width: 220px;
    transition: var(--transition);
}

.search-box input:focus {
    width: 260px;
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.notification-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: 1.25rem;
    position: relative;
    padding: 0.5rem;
}

.notification-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.5rem;
    padding: 0.25rem 0.35rem;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: white;
}

.user-dropdown {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-color);
    font-weight: 500;
}

.user-dropdown img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown i {
    font-size: 0.75rem;
}

/* Content Wrapper */
.content-wrapper {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card-info h3 {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.card-info p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.card-growth {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-growth.positive {
    color: rgba(255, 255, 255, 0.9);
}

.card-growth.negative {
    color: rgba(255, 255, 255, 0.7);
}

.card-growth i {
    margin-right: 0.25rem;
}

/* Welcome Card */
.welcome-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.welcome-card:hover {
    box-shadow: var(--shadow-md);
}

.welcome-card .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.welcome-card .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.welcome-card .card-body {
    padding: 1.5rem;
}

.welcome-content h3 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.welcome-content .lead {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.features-list i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.welcome-actions {
    display: flex;
}

/* Jobs Overview Card */
.jobs-overview-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}

.jobs-overview-card:hover {
    box-shadow: var(--shadow-md);
}

.jobs-overview-card .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.jobs-overview-card .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.jobs-overview-card .card-body {
    padding: 1.5rem;
}

.chart-container {
    height: 200px;
    margin-bottom: 1.5rem;
}

.jobs-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-color);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-color);
}

/* Quick Actions Card */
.quick-actions-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.quick-actions-card:hover {
    box-shadow: var(--shadow-md);
}

.quick-actions-card .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.quick-actions-card .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.quick-actions-card .card-body {
    padding: 1.5rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
}

.quick-action:hover {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.quick-action span {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Recent Activity Card */
.recent-activity-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.recent-activity-card:hover {
    box-shadow: var(--shadow-md);
}

.recent-activity-card .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.recent-activity-card .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.recent-activity-card .card-body {
    padding: 1.5rem;
}

.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--gray-light);
}

.activity-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-icon {
    position: absolute;
    left: -20px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 0 4px var(--gray-light);
    z-index: 1;
}

.activity-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-header h6 {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.875rem;
}

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

.activity-text {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.activity-meta .badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

/* Recent Jobs Card */
.recent-jobs-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.recent-jobs-card:hover {
    box-shadow: var(--shadow-md);
}

.recent-jobs-card .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.recent-jobs-card .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
}

.recent-jobs-card .card-body {
    padding: 1.5rem;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.job-item:hover {
    background-color: var(--gray-light);
}

.job-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.job-info {
    flex: 1;
}

.job-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.job-meta {
    display: flex;
    gap: 0.75rem;
}

.job-type,
.job-location {
    font-size: 0.75rem;
    color: var(--gray-color);
}

.job-status .badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

/* Footer */
.footer {
    padding: 1.5rem;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    color: var(--gray-color);
}

.footer a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
}

.list-inline {
    margin-bottom: 0;
}

.list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

/* Utility Classes */
.bg-primary-light {
    background-color: var(--primary-light);
}

.bg-success-light {
    background-color: rgba(76, 201, 240, 0.1);
}

.bg-warning-light {
    background-color: rgba(248, 150, 30, 0.1);
}

.bg-info-light {
    background-color: rgba(67, 170, 139, 0.1);
}

.bg-danger-light {
    background-color: rgba(247, 37, 133, 0.1);
}

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

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        left: -100%;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-nav-actions {
        gap: 0.5rem;
    }

    .search-box input {
        width: 180px;
    }

    .search-box input:focus {
        width: 200px;
    }

    .user-dropdown span {
        display: none;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .welcome-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .welcome-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-box {
        display: none;
    }

    .stats-card {
        padding: 1.25rem;
    }

    .card-info h3 {
        font-size: 1.5rem;
    }

    .quick-action {
        padding: 0.75rem 0.25rem;
    }

    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Add these styles to your existing CSS */

/* Notifications Styles */
.notifications-menu {
    width: 320px;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bs-border-color);
}

.notifications-list {
    padding: 8px 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: var(--bs-light);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 1.1rem;
}

.job-icon {
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
}

.news-icon {
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success);
}

.profile-icon {
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning);
}

.comment-icon {
    background: var(--bs-info-bg-subtle);
    color: var(--bs-info);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--bs-gray-900);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--bs-gray-600);
    display: block;
    margin-top: 4px;
}

.mark-read-btn {
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--bs-gray-600);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-item:hover .mark-read-btn {
    opacity: 1;
}

.mark-read-btn:hover {
    color: var(--bs-primary);
    transform: scale(1.1);
}

.no-notifications {
    text-align: center;
    padding: 24px 16px;
    color: var(--bs-gray-600);
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate.slideIn {
    animation: slideIn 0.3s ease forwards;
}

/* Add to your CSS */
.bg-purple {
    background-color: #6f42c1 !important;
    color: white;
}

.bg-secondary {
    background-color: #6c757d !important;
    color: white;
}

.bg-dark {
    background-color: #212529 !important;
    color: white;
}

.stats-card .card-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.stats-card .card-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stats-card .card-info p {
    opacity: 0.8;
    margin-bottom: 0;
}

.stats-card .card-growth {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stats-card .card-growth.positive {
    color: #28a745;
}

.stats-card .card-growth.negative {
    color: #dc3545;
}

.stats-card .card-growth.neutral {
    color: #6c757d;
}