/* Modern Sidebar Styles */
.modern-sidebar {
    background-color: #1a1d23 !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.modern-sidebar::-webkit-scrollbar {
    width: 6px;
}

.modern-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modern-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.modern-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Legacy Menu Support - Modern Styling for Existing Structure */
.modern-sidebar .menu-inner {
    padding: 0 1rem 2rem;
}

/* Prevent layout shifts during hover animations */
.modern-sidebar .menu-item {
    margin-bottom: 4px;
    position: relative;
    transform-origin: left center;
}

/* Smooth hover effect that doesn't feel jarky */
.modern-sidebar .menu-link {
    will-change: transform, background-color;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .modern-sidebar .menu-link {
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .modern-sidebar .menu-link:hover {
        transform: none;
    }
    .modern-sidebar .menu-sub .menu-link:hover {
        transform: none;
    }
}


/* Main menu links */
.modern-sidebar .menu-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem !important;
    color: #a8b2c7 !important;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border: none !important;
    background: transparent !important;
}

.modern-sidebar .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(2px);
    text-decoration: none;
}

/* Active main menu items */
.modern-sidebar .menu-item.active > .menu-link,
.modern-sidebar .menu-link.bg-primary {
    background-color: rgba(37, 164, 237, 0.15) !important;
    color: #25A4ED !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 164, 237, 0.15);
}

/* Menu icons */
.modern-sidebar .menu-icon {
    font-size: 1rem;
    color: inherit;
    transition: all 0.2s ease;
    margin-right: 0.75rem !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Submenu styling */
.modern-sidebar .menu-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 4px;
    margin-left: 1rem;
    overflow: hidden;
    transition: all 0.25s ease;
    display: none; /* Hidden by default */
}

/* Show submenu when parent is open (Menu library uses 'open' class) */
.modern-sidebar .menu-item.open > .menu-sub {
    display: block !important;
    padding: 0.5rem 0;
}

/* Also handle Bootstrap collapse classes for compatibility */
.modern-sidebar .menu-sub.collapse {
    display: none;
}

.modern-sidebar .menu-sub.collapse.in,
.modern-sidebar .menu-sub.collapse.show {
    display: block;
    padding: 0.5rem 0;
}

/* Submenu items */
.modern-sidebar .menu-sub .menu-item {
    margin-bottom: 2px;
}

.modern-sidebar .menu-sub .menu-link {
    padding: 0.75rem 1rem !important;
    color: #8b95a5 !important;
    font-size: 0.8125rem !important;
    border-radius: 8px;
    margin: 0 !important;
    transition: all 0.2s ease;
}

.modern-sidebar .menu-sub .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    transform: translateX(1px);
}

.modern-sidebar .menu-sub .menu-link.bg-primary {
    background-color: rgba(37, 164, 237, 0.1) !important;
    color: #25A4ED !important;
    font-weight: 600;
}

.modern-sidebar .menu-sub .menu-icon {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-right: 0.75rem !important;
    width: 20px;
    height: 20px;
}

/* Brand Section */
.brand-section {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.brand-logo img {
    width: 60px;
    height: auto;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-text {
    margin-bottom: 1rem;
}

.brand-primary {
    color: #EF6359;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-secondary {
    color: #25A4ED;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-divider {
    height: 2px;
    background-color: white;
    border-radius: 2px;
    margin: 0 auto;
    width: 60px;
    opacity: 0.8;
}

/* Menu Navigation */
.menu-navigation {
    padding: 0 1rem 2rem;
}

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

/* Menu Items */
.menu-item {
    margin-bottom: 4px;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: #a8b2c7;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
    text-decoration: none;
}

.menu-link-active {
    background-color: rgba(37, 164, 237, 0.15) !important;
    color: #25A4ED !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 164, 237, 0.15);
}

.menu-link-active .menu-icon {
    color: #25A4ED;
}

.menu-link-active .menu-indicator {
    opacity: 1;
    transform: scaleY(1);
}

/* Menu Icons */
.menu-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    position: relative;
}

.menu-icon {
    font-size: 1rem;
    color: inherit;
    transition: all 0.3s ease;
}

.menu-text {
    flex: 1;
    font-weight: inherit;
    letter-spacing: inherit;
}

.menu-indicator {
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 20px;
    background-color: #25A4ED;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Expandable Menu Items */
.menu-item-expandable .menu-link {
    position: relative;
}

.menu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-arrow i {
    font-size: 0.75rem;
    color: inherit;
}

.menu-item-expanded .menu-arrow {
    transform: rotate(90deg);
}

.menu-item-expanded .menu-link {
    color: #ffffff;
}

/* Submenu */
.menu-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 4px;
    margin-left: 1rem;
}

.menu-submenu-open {
    max-height: 500px;
    padding: 0.5rem 0;
}

.submenu-item {
    margin-bottom: 2px;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #8b95a5;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.8125rem;
    font-weight: 500;
    position: relative;
}

.submenu-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateX(2px);
    text-decoration: none;
}

.submenu-link-active {
    background-color: rgba(37, 164, 237, 0.1) !important;
    color: #25A4ED !important;
    font-weight: 600;
}

.submenu-icon-wrapper {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.submenu-icon {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.8;
}

.submenu-text {
    font-weight: inherit;
}

/* Legacy styles for compatibility */
.span-red {
    color: #EF6359;
    font-weight: 900;
    font-size: large;
}

.span-blue {
    font-size: large;
    font-weight: 900;
    color: #25A4ED;
}

.text_white th {
    color: #ffffff !important;
}

.layout-menu {
    background-color: #1a1d23 !important;
}

.reduced-padding {
    padding: 0.5rem !important;
}

/* change color of all required field(*) into red */
.asteriskField {
    color: red;
}

/* Employee Create Page Elegant Styling */
.employee-create-container {
    background-color: #f8f9fc;
    min-height: 100vh;
    padding: 2rem 0;
}

.employee-profile-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.employee-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.employee-profile-header {
    background: #667eea;
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
}

.employee-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.employee-profile-content {
    position: relative;
    z-index: 2;
}

.profile-picture-elegant {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.profile-picture-elegant:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.profile-picture-elegant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-elegant .upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    text-align: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-picture-elegant:hover .upload-overlay {
    opacity: 1;
}

.profile-info-elegant h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    /* color: white; */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-info-elegant p {
    margin-bottom: 0.25rem;
    opacity: 0.9;
    font-weight: 400;
}

.employee-form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.form-header-elegant {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e3e6f0;
}

.form-header-elegant .breadcrumb-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fc;
    color: #5a6c7d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e3e6f0;
}

.form-header-elegant .breadcrumb-link:hover {
    background: #e3e6f0;
    color: #2c3e50;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-tabs-elegant {
    border: none;
    /* background: #f8f9fc; */
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.nav-tabs-elegant .nav-item {
    margin-bottom: 0;
}

.nav-tabs-elegant .nav-link {
    border: none;
    background: transparent;
    /* color: #5a6c7d; */
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tabs-elegant .nav-link:hover {
    /* background: rgba(255, 255, 255, 0.7); */
    /* color: #2c3e50; */
    text-decoration: none;
}

.nav-tabs-elegant .nav-link.active {
    /* background: #ffffff; */
    /* color: #2c3e50; */
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-content-elegant {
    padding: 2rem;
}

.form-section-elegant {
    margin-bottom: 2.5rem;
}

.form-section-elegant:last-child {
    margin-bottom: 0;
}

.form-group-elegant {
    margin-bottom: 1.5rem;
}

.form-control-elegant {
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control-elegant:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.form-label-elegant {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-elegant-primary {
    background: #667eea;
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-elegant-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-elegant-secondary {
    background: #f8f9fc;
    border: 2px solid #e3e6f0;
    color: #5a6c7d;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-elegant-secondary:hover {
    background: #e3e6f0;
    border-color: #cbd3da;
    color: #2c3e50;
    transform: translateY(-1px);
}

.form-actions-elegant {
    text-align: center;
    padding: 2rem;
    background: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    margin-top: 2rem;
    border-radius: 0 0 16px 16px;
}

.form-actions-elegant .btn {
    margin: 0 0.5rem;
    min-width: 120px;
}

/* Modal Elegant Styling */
.modal-elegant .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-elegant .modal-header {
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1.5rem 2rem;
}

.modal-elegant .modal-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.25rem;
}

.modal-elegant .modal-body {
    padding: 2rem;
}

.photo-guidelines {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.photo-guidelines h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.photo-guidelines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photo-guidelines li {
    padding: 0.5rem 0;
    color: #5a6c7d;
    position: relative;
    padding-left: 1.5rem;
}

.photo-guidelines li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Form Field Enhancements */
.form-floating-elegant {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-elegant .form-control {
    padding: 1rem 1rem 0.5rem;
    height: auto;
}

.form-floating-elegant label {
    position: absolute;
    top: 0;
    left: 1rem;
    padding: 1rem 0 0;
    pointer-events: none;
    transition: all 0.3s ease;
    color: #5a6c7d;
    font-weight: 400;
}

.form-floating-elegant .form-control:focus ~ label,
.form-floating-elegant .form-control:not(:placeholder-shown) ~ label {
    transform: translateY(-0.5rem) scale(0.85);
    color: #667eea;
    font-weight: 600;
}

/* Override crispy forms styling for elegant appearance */
.employee-form-container .form-control {
    border: 2px solid #e3e6f0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.employee-form-container .form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    background: #ffffff !important;
    outline: none !important;
}

.employee-form-container .form-label,
.employee-form-container label {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.employee-form-container .form-select {
    border: 2px solid #e3e6f0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff !important;
    font-size: 0.95rem !important;
}

.employee-form-container .form-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.employee-form-container .form-check-input {
    border: 2px solid #e3e6f0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
}

.employee-form-container .form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

.employee-form-container .form-check-label {
    color: #5a6c7d !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.95rem !important;
}

/* Select2 styling for elegant appearance */
.employee-form-container .select2-container .select2-selection--single {
    border: 2px solid #e3e6f0 !important;
    border-radius: 8px !important;
    height: 48px !important;
    background: #ffffff !important;
}

.employee-form-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2c3e50 !important;
    line-height: 44px !important;
    padding-left: 1rem !important;
    font-size: 0.95rem !important;
}

.employee-form-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 1rem !important;
}

.employee-form-container .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Form group spacing */
.employee-form-container .form-group {
    margin-bottom: 2rem !important;
}

.employee-form-container .mb-3 {
    margin-bottom: 2rem !important;
}

/* Required field asterisk styling */
.employee-form-container .asteriskField {
    color: #e74c3c !important;
    font-weight: bold !important;
    margin-left: 4px !important;
}

/* Help text styling */
.employee-form-container .form-text {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
    font-style: italic !important;
}

/* Modern Table Design - No Gradients */
.table-responsive {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf0;
    padding: 0;
    overflow: hidden;
}

/* Enhanced Table Styling */
.django-tables2 table,
.table {
    margin-bottom: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

/* Modern Table Header */
.django-tables2 table thead th,
.table thead th {
    background: #2d3748 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 1rem 1.25rem !important;
    border: none !important;
    position: sticky !important;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #4a5568 !important;
}

.django-tables2 table thead th:first-child,
.table thead th:first-child {
    border-top-left-radius: 0px;
}

.django-tables2 table thead th:last-child,
.table thead th:last-child {
    border-top-right-radius: 12px;
}

/* Modern Table Body */
.django-tables2 table tbody tr,
.table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #e8ecf0;
    transition: all 0.2s ease;
}

.django-tables2 table tbody tr:hover,
.table tbody tr:hover {
    background: #f7fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.django-tables2 table tbody tr:last-child,
.table tbody tr:last-child {
    border-bottom: none;
}

/* Modern Table Cells */
.django-tables2 table tbody td,
.table tbody td {
    padding: 1rem 1.25rem !important;
    border: none !important;
    color: #4a5568 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

/* Profile Picture Column */
.django-tables2 table tbody td:first-child img,
.table tbody td:first-child img {
    border-radius: 50%;
    border: 3px solid #e8ecf0;
    transition: all 0.3s ease;
}

.django-tables2 table tbody td:first-child img:hover,
.table tbody td:first-child img:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Action Buttons Styling */
.btn-sm {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    margin: 0 0.125rem !important;
    border: 1px solid transparent !important;
}

.btn-outline-info {
    color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    background: transparent !important;
}

.btn-outline-info:hover {
    background: #0ea5e9 !important;
    color: #ffffff !important;
    border-color: #0ea5e9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.25) !important;
}

.btn-outline-primary {
    color: #667eea !important;
    border-color: #667eea !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #667eea !important;
    color: #ffffff !important;
    border-color: #667eea !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25) !important;
}

.btn-outline-danger {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
    background: transparent !important;
}

.btn-outline-danger:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25) !important;
}

/* Status Icons and Badges */
.fas.fa-square-check.text-success {
    color: #10b981 !important;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.25));
}

.fas.fa-square-xmark.text-danger {
    color: #ef4444 !important;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(239, 68, 68, 0.25));
}

.fas.fa-briefcase.text-success {
    color: #10b981 !important;
    font-size: 0.9rem;
}

.fas.fa-briefcase.text-danger {
    color: #ef4444 !important;
    font-size: 0.9rem;
}

.fas.fa-circle.text-danger {
    color: #ef4444 !important;
    font-size: 0.8rem;
}

/* Link Styling in Table */
.django-tables2 table tbody td a,
.table tbody td a {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.django-tables2 table tbody td a:hover,
.table tbody td a:hover {
    color: #5a67d8 !important;
    text-decoration: underline !important;
}

/* Serial Number Column */
.django-tables2 table tbody td:first-child,
.table tbody td:first-child {
    font-weight: 600 !important;
    color: #2d3748 !important;
    background: #f7fafc !important;
    border-right: 1px solid #e8ecf0 !important;
}

/* Table Striping Alternative (subtle) */
.table-striped tbody tr:nth-of-type(even) {
    background: #fafbfc !important;
}

.table-striped tbody tr:nth-of-type(even):hover {
    background: #f0f4f8 !important;
}

/* Empty State */
.django-tables2 .table tbody tr td[colspan] {
    text-align: center !important;
    color: #718096 !important;
    font-style: italic !important;
    padding: 3rem 1.25rem !important;
    background: #fafbfc !important;
}

/* Pagination Styling */
.pagination {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecf0;
    padding: 0.5rem;
    margin-top: 1.5rem;
}

.pagination .page-link {
    color: #4a5568;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.pagination .page-item.active .page-link {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25);
}

.pagination .page-item.disabled .page-link {
    color: #a0aec0;
    background: transparent;
    cursor: not-allowed;
}

/* Table Loading State */
.table-loading {
    position: relative;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 5;
}

/* Mobile Table Responsiveness */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 8px;
        margin: 0 -0.5rem;
    }

    .django-tables2 table thead th,
    .table thead th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.8rem !important;
    }

    .django-tables2 table tbody td,
    .table tbody td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .btn-sm {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.75rem !important;
        margin: 0.125rem !important;
    }
}

/* Modern Employee Table Specific Styles */
.modern-employee-table {
    background: #ffffff;
    border-radius: 0;
    border: none;
}

.modern-employee-table thead th {
    background: #1a202c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.8rem !important;
    padding: 1.25rem 1rem !important;
    border: none !important;
    white-space: nowrap !important;
}

.modern-employee-table tbody tr {
    border-bottom: 1px solid #f0f4f8 !important;
    transition: all 0.25s ease !important;
}

.modern-employee-table tbody tr:hover {
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    z-index: 2 !important;
}

.modern-employee-table tbody tr:last-child {
    border-bottom: none !important;
}

.modern-employee-table tbody td {
    padding: 1.25rem 1rem !important;
    vertical-align: middle !important;
    color: #4a5568 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border: none !important;
}

/* Serial Number Column Enhancement */
.modern-employee-table tbody td:first-child {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%) !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    text-align: center !important;
    border-right: 2px solid #e2e8f0 !important;
    width: 60px !important;
    font-size: 0.9rem !important;
}

/* Profile Picture Column Enhancement */
.modern-employee-table tbody td:nth-child(2) {
    padding: 0.75rem 1rem !important;
    text-align: center !important;
}

/* Action Column Enhancement */
.modern-employee-table tbody td:last-child {
    text-align: center !important;
    padding: 1rem !important;
    background: rgba(248, 250, 252, 0.5) !important;
}

.modern-employee-table tbody tr:hover td:last-child {
    background: rgba(237, 242, 247, 0.8) !important;
}

/* Department and Role Column Styling */
.modern-employee-table tbody td:nth-child(5),
.modern-employee-table tbody td:nth-child(6) {
    font-weight: 600 !important;
    color: #2d3748 !important;
}

/* Status Enhancement */
.modern-employee-table .fas {
    transition: all 0.2s ease !important;
}

.modern-employee-table .fas:hover {
    transform: scale(1.1) !important;
}

/* Links in Table */
.modern-employee-table a {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.modern-employee-table a:hover {
    color: #5a67d8 !important;
    text-decoration: none !important;
}

/* Responsive Table Design - Grouped Columns */
.responsive-table {
    width: 100% !important;
    table-layout: auto !important;
}

/* Employee Info Card Styling */
.employee-info-card {
    min-width: 200px;
    max-width: 280px;
}

.profile-picture-wrapper img,
.profile-picture-wrapper .fa-user-circle {
    border-radius: 50% !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

.profile-picture-wrapper:hover img,
.profile-picture-wrapper:hover .fa-user-circle {
    border-color: #667eea !important;
    transform: scale(1.1) !important;
}

.employee-name a {
    color: #2d3748 !important;
    font-size: 0.95rem !important;
}

.employee-username {
    font-size: 0.8rem !important;
}

.employee-status i {
    font-size: 0.75rem !important;
}

/* Work Details Card Styling */
.work-details-card {
    min-width: 180px;
    max-width: 220px;
}

.work-details-card .fw-semibold {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}

.work-details-card .badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Contact Info Card Styling */
.contact-info-card {
    min-width: 160px;
    max-width: 200px;
}

.contact-info-card i {
    width: 14px !important;
    text-align: center !important;
}

/* Personal Info Card Styling */
.personal-info-card {
    min-width: 120px;
    max-width: 160px;
}

.personal-info-card i {
    width: 16px !important;
    text-align: center !important;
}

/* Actions Wrapper Styling */
.actions-wrapper {
    min-width: 120px;
}

.actions-wrapper .btn {
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
}

/* Responsive Breakpoints */
@media (max-width: 1400px) {
    .modern-employee-table thead th,
    .modern-employee-table tbody td {
        padding: 0.75rem 0.5rem !important;
    }

    .employee-info-card {
        max-width: 240px;
    }

    .work-details-card {
        max-width: 200px;
    }
}

@media (max-width: 1200px) {
    .modern-employee-table {
        font-size: 0.85rem !important;
    }

    .employee-info-card {
        max-width: 220px;
    }

    .work-details-card {
        max-width: 180px;
    }

    .contact-info-card {
        max-width: 180px;
    }

    .actions-wrapper .btn {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Mobile-First Responsive Design */
@media (max-width: 992px) {
    .table-responsive {
        border-radius: 8px !important;
        margin: 0 -0.5rem !important;
    }

    .modern-employee-table thead th,
    .modern-employee-table tbody td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.8rem !important;
    }

    /* Hide less important columns on tablets */
    .modern-employee-table thead th:nth-child(5), /* Personal Info */
    .modern-employee-table tbody td:nth-child(5) {
        display: none !important;
    }

    .employee-info-card {
        max-width: 180px;
    }

    .work-details-card {
        max-width: 160px;
    }

    .contact-info-card {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    /* Mobile Table Layout */
    .table-responsive {
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        margin: 0 -1rem !important;
        border-radius: 6px !important;
    }

    .modern-employee-table {
        min-width: 600px !important; /* Force horizontal scroll */
    }

    .modern-employee-table thead th,
    .modern-employee-table tbody td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
    }

    /* Hide contact info on mobile */
    .modern-employee-table thead th:nth-child(4), /* Contact Info */
    .modern-employee-table tbody td:nth-child(4),
    .modern-employee-table thead th:nth-child(5), /* Personal Info */
    .modern-employee-table tbody td:nth-child(5) {
        display: none !important;
    }

    .modern-employee-table tbody td:first-child {
        width: 40px !important;
        font-size: 0.7rem !important;
    }

    .employee-info-card {
        max-width: 160px;
        min-width: 140px;
    }

    .employee-info-card .employee-details {
        min-width: 0; /* Allow text to wrap */
    }

    .employee-name a {
        font-size: 0.8rem !important;
    }

    .employee-username {
        font-size: 0.7rem !important;
    }

    .work-details-card {
        max-width: 140px;
        min-width: 120px;
    }

    .work-details-card .fw-semibold {
        font-size: 0.8rem !important;
    }

    .work-details-card .small {
        font-size: 0.7rem !important;
    }

    .actions-wrapper {
        min-width: 80px;
    }

    .actions-wrapper .btn {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.375rem !important;
    }
}

/* Ultra Mobile (Small Phones) */
@media (max-width: 576px) {
    .modern-employee-table {
        min-width: 500px !important;
    }

    .modern-employee-table thead th,
    .modern-employee-table tbody td {
        padding: 0.375rem 0.2rem !important;
        font-size: 0.7rem !important;
    }

    .employee-info-card {
        max-width: 120px;
        min-width: 100px;
    }

    .work-details-card {
        max-width: 110px;
        min-width: 90px;
    }

    .actions-wrapper {
        min-width: 60px;
    }

    .profile-picture-wrapper img,
    .profile-picture-wrapper .fa-user-circle {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Print Styles */
@media print {
    .modern-employee-table {
        font-size: 0.7rem !important;
    }

    .modern-employee-table thead th,
    .modern-employee-table tbody td {
        padding: 0.25rem !important;
        border: 1px solid #dee2e6 !important;
    }

    .actions-wrapper {
        display: none !important;
    }
}

/* Enhanced Responsive Enhancement for Employee Table */
@media (max-width: 1200px) {
    .modern-employee-table {
        font-size: 0.8rem;
    }

    .modern-employee-table thead th,
    .modern-employee-table tbody td {
        padding: 0.875rem 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .modern-employee-table thead th,
    .modern-employee-table tbody td {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .modern-employee-table tbody td:first-child {
        width: 45px !important;
    }
}

/* Filter Card Enhancement */
.card {
    border-radius: 12px !important;
    border: 1px solid #e8ecf0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

.card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e8ecf0 !important;
    border-radius: 12px 12px 0 0 !important;
}

.card-header.bg-primary {
    background: #667eea !important;
    color: #ffffff !important;
}

/* =============================
   SIMPLE ELEGANT DASHBOARD STYLES
   ============================= */

/* Simple Dashboard Container */
.simple-dashboard {
    min-height: 100vh;
    background: #f8fafc;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .simple-dashboard {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .simple-dashboard {
        padding: 2rem 1rem;
    }
}

/* Dashboard Header */
.dashboard-header {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .dashboard-header {
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .dashboard-header {
        padding: 2rem;
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.user-greeting {
    flex: 1;
}

.greeting-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .greeting-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .greeting-title {
        font-size: 1.75rem;
    }
}

.greeting-date {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

@media (min-width: 640px) {
    .greeting-date {
        font-size: 1rem;
    }
}

.current-time {
    text-align: center;
    color: #1a202c;
}

@media (min-width: 640px) {
    .current-time {
        text-align: right;
    }
}

.time-display {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #3b82f6;
}

@media (min-width: 640px) {
    .time-display {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .time-display {
        font-size: 2.2rem;
    }
}

/* Simple Alert */
.alert-simple {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-simple i {
    font-size: 1.1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    gap: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.roster-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Action Section */
.action-section {
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .action-section {
        margin-bottom: 2rem;
    }
}

.action-card-simple {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .action-card-simple {
        flex-direction: row;
        text-align: left;
        padding: 2rem;
        border-radius: 12px;
        gap: 2rem;
    }
}

.action-card-simple:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.action-icon-simple {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .action-icon-simple {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
}

@media (min-width: 1024px) {
    .action-icon-simple {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
}

.check-in-icon {
    background: #dcfce7;
    color: #16a34a;
}

.check-out-icon {
    background: #fee2e2;
    color: #dc2626;
}

.break-start-icon {
    background: #fef3c7;
    color: #d97706;
}

.break-end-icon {
    background: #dbeafe;
    color: #2563eb;
}

.disabled-icon {
    background: #f1f5f9;
    color: #64748b;
}

.action-content {
    flex: 1;
    width: 100%;
}

@media (min-width: 640px) {
    .action-content {
        width: auto;
    }
}

.action-title-simple {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .action-title-simple {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .action-title-simple {
        font-size: 1.5rem;
    }
}

.action-desc {
    color: #64748b;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .action-desc {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
}

/* Simple Buttons */
.btn-simple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
    min-width: 120px;
    text-align: center;
}

@media (min-width: 640px) {
    .btn-simple {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-width: 140px;
    }
}

.btn-simple:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-success:hover {
    background: #15803d;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    color: white;
}

.btn-warning {
    background: #d97706;
    color: white;
}

.btn-warning:hover {
    background: #b45309;
    color: white;
}

.btn-info {
    background: #2563eb;
    color: white;
}

.btn-info:hover {
    background: #1d4ed8;
    color: white;
}

.btn-disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

/* Roster Section */
.roster-section {
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .roster-section {
        margin-bottom: 2rem;
    }
}

.roster-card-simple {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

@media (min-width: 640px) {
    .roster-card-simple {
        border-radius: 12px;
        padding: 1.5rem;
    }
}

.roster-table-simple {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.75rem;
    min-width: 600px;
}

@media (min-width: 640px) {
    .roster-table-simple {
        font-size: 0.8rem;
        min-width: 700px;
    }
}

@media (min-width: 1024px) {
    .roster-table-simple {
        font-size: 0.9rem;
        min-width: 800px;
    }
}

.week-header {
    padding: 0.75rem 0.25rem;
    font-weight: 600;
    text-align: center;
    color: white;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .week-header {
        padding: 0.875rem 0.375rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .week-header {
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }
}

.week-header.current {
    background: #3b82f6;
}

.week-header.next {
    background: #06b6d4;
}

.date-header {
    padding: 0.5rem 0.25rem;
    background: #f8fafc;
    color: #475569;
    font-weight: 500;
    text-align: center;
    font-size: 0.7rem;
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .date-header {
        padding: 0.625rem 0.375rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .date-header {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

.divider {
    background: #e2e8f0;
    width: 6px;
}

@media (min-width: 640px) {
    .divider {
        width: 8px;
    }
}

.schedule-cell {
    padding: 0.75rem 0.25rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 640px) {
    .schedule-cell {
        padding: 0.875rem 0.375rem;
    }
}

@media (min-width: 1024px) {
    .schedule-cell {
        padding: 1rem 0.5rem;
    }
}

.status-simple {
    display: inline-block;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .status-simple {
        padding: 0.4375rem 0.625rem;
        border-radius: 5px;
        font-size: 0.7rem;
        min-width: 70px;
    }
}

@media (min-width: 1024px) {
    .status-simple {
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        font-size: 0.8rem;
        min-width: 80px;
    }
}

.status-empty {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px dashed #cbd5e1;
}

.status-attended {
    background: #dcfce7;
    color: #166534;
}

.status-checked-in {
    background: #fef3c7;
    color: #92400e;
}

.status-leave {
    background: #fee2e2;
    color: #991b1b;
}

.status-holiday {
    background: #dbeafe;
    color: #1e40af;
}

.status-roster-leave {
    background: #ede9fe;
    color: #6b21a8;
}

.status-pending {
    background: #fef3c7;
    color: #78350f;
}

.status-scheduled {
    background: #f1f5f9;
    color: #334155;
}

/* Stats Section */
.stats-section {
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .stats-section {
        margin-bottom: 2rem;
    }
}

.stats-grid-simple {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .stats-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .stats-grid-simple {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.stat-card-simple {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .stat-card-simple {
        border-radius: 10px;
        padding: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .stat-card-simple {
        border-radius: 12px;
        padding: 1.5rem;
    }
}

.stat-card-simple:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.stat-card-simple.attendance {
    border-left: 4px solid #16a34a;
}

.stat-card-simple.leave {
    border-left: 4px solid #dc2626;
}

.stat-card-simple.notices {
    border-left: 4px solid #2563eb;
}

.stat-icon-simple {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .stat-icon-simple {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .stat-icon-simple {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.attendance .stat-icon-simple {
    background: #dcfce7;
    color: #16a34a;
}

.leave .stat-icon-simple {
    background: #fee2e2;
    color: #dc2626;
}

.notices .stat-icon-simple {
    background: #dbeafe;
    color: #2563eb;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 2rem;
    }
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .stat-label {
        font-size: 0.9rem;
    }
}

.stat-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.stat-link:hover {
    color: #2563eb;
    text-decoration: none;
}

/* Compact Roster Section Styles */
.roster-compact {
    margin-bottom: 1rem !important;
}

.roster-note-prominent {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.roster-card-compact {
    padding: 0.75rem !important;
}

@media (min-width: 640px) {
    .roster-card-compact {
        padding: 1rem !important;
    }
}

.roster-compact .roster-table-simple {
    font-size: 0.7rem !important;
    min-width: 500px;
}

@media (min-width: 640px) {
    .roster-compact .roster-table-simple {
        font-size: 0.75rem !important;
        min-width: 600px;
    }
}

.roster-compact .week-header {
    padding: 0.5rem 0.2rem !important;
    font-size: 0.7rem !important;
}

.roster-compact .date-header {
    padding: 0.4rem 0.2rem !important;
    font-size: 0.65rem !important;
}

.roster-compact .schedule-cell {
    padding: 0.5rem 0.2rem !important;
}

.roster-compact .status-simple {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.6rem !important;
    min-width: 45px !important;
    border-radius: 4px !important;
}

@media (min-width: 640px) {
    .roster-compact .status-simple {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.65rem !important;
        min-width: 55px !important;
    }
}

/* Compact Stats Section Styles */
.stats-compact {
    margin-bottom: 1rem !important;
}

.stats-grid-compact {
    gap: 0.75rem !important;
}

.stats-compact .stat-card-simple {
    padding: 1rem !important;
    border-radius: 6px !important;
}

.stats-compact .stat-icon-simple {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
}

@media (min-width: 640px) {
    .stats-compact .stat-icon-simple {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.05rem !important;
    }
}

.stats-compact .stat-number {
    font-size: 1.4rem !important;
    margin-bottom: 0.2rem !important;
}

@media (min-width: 640px) {
    .stats-compact .stat-number {
        font-size: 1.5rem !important;
    }
}

.stats-compact .stat-label {
    font-size: 0.75rem !important;
}

@media (min-width: 640px) {
    .stats-compact .stat-label {
        font-size: 0.8rem !important;
    }
}

/* Additional Responsive Utilities */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch-friendly scrollbars on mobile */
@media (max-width: 767px) {
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

/* Responsive text utilities */
@media (max-width: 479px) {
    .greeting-title {
        font-size: 1.125rem !important;
    }

    .time-display {
        font-size: 1.375rem !important;
    }

    .action-title-simple {
        font-size: 1.125rem !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.25rem !important;
    }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 374px) {
    .simple-dashboard {
        padding: 0.75rem 0.5rem;
    }

    .dashboard-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .action-card-simple,
    .stat-card-simple,
    .roster-card-simple {
        padding: 1rem;
    }

    .status-simple {
        min-width: 50px;
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .simple-dashboard {
        padding: 2.5rem 2rem;
    }

    .dashboard-grid {
        gap: 2.5rem;
    }

    .dashboard-header {
        padding: 2.5rem;
    }

    .action-card-simple {
        padding: 2.5rem;
        gap: 2.5rem;
    }
}

/* Modern Action Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.btn-check-in {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-check-in:hover {
    color: white;
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-check-out {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-check-out:hover {
    color: white;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-break-start {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-break-start:hover {
    color: white;
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-break-end {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-break-end:hover {
    color: white;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Roster Schedule Section */
.roster-schedule-section {
    margin-bottom: 4rem;
}

.roster-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.roster-table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
}

.roster-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 800px;
}

.week-headers th {
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-week {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.next-week {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.date-headers th {
    padding: 1rem;
    background: #f8fafc;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #e2e8f0;
}

.date-cell {
    text-align: center;
    white-space: nowrap;
}

.divider-cell {
    background: #e2e8f0 !important;
    width: 10px;
    border: none !important;
}

.schedule-cell {
    padding: 1rem 0.5rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f0f4f8;
}

.status-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 100px;
    transition: all 0.3s ease;
}

.status-badge i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.status-empty {
    background: #f8fafc;
    color: #a0aec0;
    border: 2px dashed #e2e8f0;
}

.status-attended {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
    border: 2px solid #10b981;
}

.status-checked-in {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #92400e;
    border: 2px solid #f59e0b;
}

.status-leave {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    color: #991b1b;
    border: 2px solid #ef4444;
}

.status-holiday {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.status-roster-leave {
    background: linear-gradient(135deg, #ede9fe, #c4b5fd);
    color: #6b21a8;
    border: 2px solid #8b5cf6;
}

.status-pending {
    background: linear-gradient(135deg, #fef7cd, #fde68a);
    color: #78350f;
    border: 2px solid #f59e0b;
}

.status-scheduled {
    background: var(--schedule-color, #667eea);
    color: white;
    border: 2px solid var(--schedule-color, #667eea);
}

.schedule-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedule-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.schedule-time {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.attendance-stat::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.leave-stat::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.notices-stat::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.attendance-stat .stat-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.leave-stat .stat-icon {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    color: #991b1b;
}

.notices-stat .stat-icon {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1e40af;
}

.stat-content {
    margin-bottom: 1.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 500;
}

.stat-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.stat-link:hover {
    color: #5a67d8;
    text-decoration: none;
}

.stat-progress {
    height: 8px;
    background: #f0f4f8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.leave-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-text {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 0;
    }

    .welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .current-time {
        text-align: center;
    }

    .time-display {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .action-card {
        padding: 2rem 1.5rem;
    }

    .action-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .roster-table {
        min-width: 600px;
    }

    .status-badge {
        min-width: 80px;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-sidebar {
        width: 260px;
    }

    .brand-section {
        padding: 1.5rem 1rem 1rem;
    }

    .menu-navigation {
        padding: 0 0.75rem 1.5rem;
    }

    .menu-link {
        padding: 0.75rem 0.875rem;
    }

    .employee-create-container {
        padding: 1rem 0;
    }

    .employee-profile-header {
        padding: 1.5rem;
    }

    .form-content-elegant {
        padding: 1.5rem;
    }

    .nav-tabs-elegant {
        flex-direction: column;
    }

    .nav-tabs-elegant .nav-link {
        text-align: center;
        margin-bottom: 0.25rem;
    }
}
