/* ==================== SEARCH BAR STYLES ==================== */
.search-bar-container {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    margin: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 500px;
    flex: 1;
    max-width: 600px;
}

.search-input-container .form-control {
    padding: 0.75rem 3rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    color: var(--dark-color);
    width: 100%;
    min-width: 500px;
}

.search-input-container .form-control::placeholder {
    color: #6c757d;
}

.search-input-container .form-control:focus {
    outline: none;
    border-color: var(--dark-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.clear-search-btn:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.search-results-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    color: #004085;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results-info span {
    font-weight: 600;
    color: #007bff;
}

/* Responsive search bar */
@media (max-width: 768px) {
    .search-input-container {
        min-width: 250px;
        max-width: 100%;
    }
    
    .search-input-container .form-control {
        min-width: 250px;
    }
    
    .search-form {
        justify-content: center;
    }
    
    .search-bar-container {
        padding: 1rem;
    }
}

/* ==================== PASSWORD INPUT WITH TOGGLE ==================== */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 3px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle-btn:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.password-toggle-btn:focus {
    outline: none;
    background: var(--light-color);
    color: var(--dark-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.password-toggle-btn i {
    font-size: 1rem;
}

/* ==================== GLOBAL STYLES ==================== */
/* Updated: 2024-12-19 - Fixed card header left upper corner */
:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --success-color: #333333;
    --danger-color: #000000;
    --warning-color: #444444;
    --info-color: #555555;
    --dark-color: #000000;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ==================== TAB NAVIGATION STYLES ==================== */
.tab-navigation {
    display: flex;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.tab-button {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    border-right: 1px solid #dee2e6;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0;
    flex: 1;
    justify-content: center;
    position: relative;
}

.tab-button:first-child {
    border-top-left-radius: 8px;
    border-left: 1px solid #dee2e6;
}

.tab-button:last-child {
    border-top-right-radius: 8px;
    border-right: none;
}

.tab-button:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: #000000;
}

.tab-button.active {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000000;
    font-weight: 600;
    border-bottom-color: #000000;
}

.tab-button.active:hover {
    background-color: rgba(0, 0, 0, 0.25);
    color: #000000;
}

/* Individual tab colors when active */
#tab-pending.active {
    background-color: #000000;
    color: white;
    border-bottom-color: #000000;
}

#tab-completed.active {
    background-color: #28a745;
    color: white;
    border-bottom-color: #28a745;
}

#tab-rejected.active {
    background-color: #dc3545;
    color: white;
    border-bottom-color: #dc3545;
}

#tab-recurring.active {
    background-color: #ffc107;
    color: #212529;
    border-bottom-color: #ffc107;
}

/* Hover effects for individual tabs */
#tab-pending:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

#tab-completed:hover {
    background-color: rgba(40, 167, 69, 0.8);
    color: white;
}

#tab-rejected:hover {
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
}

#tab-recurring:hover {
    background-color: rgba(255, 193, 7, 0.8);
    color: white;
}

.tab-button i {
    font-size: 16px;
}

.tab-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 15px;
}

.tab-search-input {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    margin-right: 5px;
}

.tab-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.tab-search-btn {
    background: #007bff;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-search-btn:hover {
    background: #0056b3;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== CARD HEADER LAYOUT ==================== */
.card-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header .header-top h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.card-header .header-top .btn {
    margin: 0;
}

/* ==================== DASHBOARD ACTIONS ==================== */
.dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

.dashboard-actions .btn {
    margin: 0;
}

.new-request-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.new-request-dropdown .new-request-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.new-request-dropdown .dropdown-caret {
    font-size: 0.85em;
}

.new-request-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 20, 43, 0.2);
    padding: 8px 0;
    display: none;
    z-index: 20;
}

.new-request-dropdown.open .new-request-menu {
    display: block;
}

.new-request-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.new-request-menu a i {
    color: var(--primary-color);
}

.new-request-menu a:hover {
    background: rgba(12, 108, 242, 0.08);
    color: var(--primary-color);
}

/* ==================== REPORTS DROPDOWN (Navbar) ==================== */
.reports-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.reports-dropdown .reports-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: inherit;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 5px;
    transition: var(--transition);
}

.reports-dropdown .reports-toggle:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.reports-dropdown .dropdown-caret {
    font-size: 0.85em;
}

.reports-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 20, 43, 0.2);
    padding: 8px 0;
    display: none;
    z-index: 20;
}

.reports-dropdown.open .reports-menu {
    display: block;
}

.reports-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.reports-menu a i {
    display: none;
}

.reports-menu a span {
    flex: 1;
}

.reports-menu a:hover {
    background: rgba(12, 108, 242, 0.08);
    color: var(--primary-color);
}

.card-header .filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card-header .filter-controls select {
    min-width: 150px;
}

.filter-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-header .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header .search-form .form-control {
    min-width: 250px;
}

.card-header .form-select {
    min-width: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.card-header .form-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header .form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.card-header .form-select option {
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
}

.card-header .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

.card-header .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.card-header .form-control:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.card-header .btn-primary {
    background: #007bff;
    border: 1px solid #007bff;
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
}

.card-header .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.card-header .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* General form-select styling for consistency */
.form-select {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-select:hover {
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-select option {
    background: #ffffff;
    color: #495057;
    padding: 8px 12px;
}

/* ==================== CARD INTEGRATION WITH TABS ==================== */
.card {
    border-radius: 0 8px 8px 0 !important;
    margin-top: 0;
    border-top: none;
}

.card-header {
    border-radius: 0 10px 0 0 !important;
    border-top: none;
    background: var(--dark-color) !important;
    color: var(--white) !important;
}

/* Force the left upper corner to not be rounded for cards under tabs */
.tab-navigation + .card {
    border-radius: 0 8px 8px 0 !important;
}

.tab-navigation + .card .card-header {
    border-radius: 0 10px 0 0 !important;
    background: var(--dark-color) !important;
    color: var(--white) !important;
}

/* Additional specific targeting for dashboard cards */
.dashboard-container .card .card-header {
    border-radius: 0 10px 0 0 !important;
    background: var(--dark-color) !important;
    color: var(--white) !important;
}

/* Special case for IT dashboard where card is inside tab-content after tab-navigation */
.tab-navigation ~ .tab-content .card {
    border-radius: 0 8px 8px 0 !important;
}

.tab-navigation ~ .tab-content .card .card-header {
    border-radius: 0 10px 0 0 !important;
    background: var(--dark-color) !important;
    color: var(--white) !important;
}

/* Even more specific targeting */
div.card > div.card-header {
    border-radius: 0 10px 0 0 !important;
    background: var(--dark-color) !important;
    color: var(--white) !important;
}

/* ==================== REAL-TIME NOTIFICATIONS ==================== */
.realtime-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #2E7D32;
}

.realtime-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.realtime-notification i {
    font-size: 20px;
    color: #fff;
}

.realtime-notification div {
    flex: 1;
}

.realtime-notification strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.realtime-notification p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.refresh-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 10px;
}

.refresh-indicator i {
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.refresh-indicator strong {
    color: #fff;
    font-weight: 600;
}

.refresh-indicator .last-update {
    font-size: 10px;
    opacity: 0.8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1980px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* Desktop Hamburger Menu Button (left of Payment System) */
.hamburger-menu-desktop {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    margin-right: 1.5rem;
    z-index: 1001;
}

.hamburger-menu-desktop span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-menu-desktop.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.hamburger-menu-desktop.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-desktop.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* Desktop Sidebar Menu */
.desktop-sidebar-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

.desktop-sidebar-menu.active {
    display: flex;
}

.desktop-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.desktop-sidebar-content {
    position: relative;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    z-index: 1000;
}

.desktop-sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-sidebar-close:hover {
    color: var(--secondary-color);
}

.desktop-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 5rem 0 0 0;
}

.desktop-sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 1rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.desktop-sidebar-item:hover {
    background: var(--light-color);
    border-left-color: var(--primary-color);
}

.desktop-sidebar-item i {
    font-size: 1.3rem;
}

/* Desktop Sidebar Dropdown */
.desktop-sidebar-dropdown {
    display: flex;
    flex-direction: column;
}

.desktop-sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.desktop-sidebar-dropdown-toggle:hover {
    background: var(--light-color);
}

.desktop-sidebar-dropdown-toggle .dropdown-chevron {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.desktop-sidebar-dropdown-toggle.active .dropdown-chevron {
    transform: rotate(180deg);
}

.desktop-sidebar-submenu {
    display: none;
    flex-direction: column;
    background: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.desktop-sidebar-submenu.active {
    display: flex;
    max-height: 500px;
}

.desktop-sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem 0.85rem 3rem;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.desktop-sidebar-submenu-item:hover {
    background: var(--light-color);
    border-left-color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

/* Hide Dashboard, Reports, and Item Requests from desktop navbar (they're in the sidebar) */
.nav-menu-desktop-hidden {
    display: none;
}

.nav-link {
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.nav-link.active {
    background: #e8e9eb;
    color: var(--dark-color);
}

.nav-link.logout {
    color: var(--danger-color);
}

.nav-user {
    margin-left: 0.5rem;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: #f4f5f7;
    border: 1px solid var(--border-color);
}

.user-dropdown-caret {
    font-size: 0.7rem;
    color: #777;
    margin-left: 0.1rem;
}

.user-role {
    background: var(--dark-color);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== NOTIFICATION BELL ==================== */
.notification-bell-container {
    position: relative;
}

.notification-bell {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    color: var(--dark-color);
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    font-size: 1.2rem;
}

.notification-bell:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.notification-badge {
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
}

/* Calendar badge styling - similar to notification badge */
.calendar-link {
    position: relative;
}

.calendar-link .notification-badge {
    position: absolute;
    top: 0.2rem;
    left: -0.4rem; /* moved slightly left, allowed to overflow button */
    right: auto; /* ensure the badge doesn't stretch by unsetting the global right anchor */
    width: auto;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-badge {
    position: absolute;
    top: 0.2rem;
    left: -0.4rem; /* moved slightly left, allowed to overflow button */
    right: auto;
    width: auto;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-sidebar-item.calendar-link {
    position: relative;
}

.desktop-sidebar-item .calendar-badge {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    margin-top: -0.5rem;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.notification-dropdown.show {
    display: block;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
    border-radius: 10px 10px 0 0;
}

/* User settings dropdown (under user info pill) */
.user-settings-dropdown {
    width: 260px;
}

.user-settings-dropdown .notification-dropdown-content {
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.close-dropdown {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    transition: var(--transition);
}

.close-dropdown:hover {
    background: var(--border-color);
    color: var(--dark-color);
}

.notification-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.notification-item-dropdown {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.notification-item-dropdown:hover {
    background: var(--light-color);
}

.notification-item-dropdown:last-child {
    border-bottom: none;
}

.notification-item-dropdown.unread {
    background: rgba(0, 123, 255, 0.05);
    border-left: 3px solid var(--info-color);
}

.notification-title-dropdown {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-dot {
    color: var(--info-color);
    font-size: 0.6rem;
}

.notification-message-dropdown {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.notification-time-dropdown {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.notification-actions-dropdown {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-actions-dropdown .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.notification-dropdown-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
    border-radius: 0 0 10px 10px;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.notification-empty {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    padding: 3rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 4rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--secondary-color);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--secondary-color);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    max-width: 1980px;
    margin: 2rem auto;
    padding: 0 0.5rem;
    min-height: calc(100vh - 200px);
}

/* ==================== DASHBOARD ==================== */
.dashboard-container {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem 0.5rem;
    box-shadow: var(--shadow);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-header p {
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-info h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.stat-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: 10px 10px 10px 0 !important;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: var(--dark-color) !important;
    color: var(--white) !important;
    padding: 0.75rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 10px 0 0 !important;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header h2,
.card-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 0.75rem;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group label i {
    margin-right: 0.3rem;
    color: var(--dark-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group input[readonly] {
    background: var(--light-color);
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
}

.form-group.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--dark-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #1a1a1a;
}

.btn-danger {
    background: var(--dark-color);
    color: var(--white);
    border: 2px solid var(--dark-color);
}

.btn-danger:hover {
    background: var(--white);
    color: var(--dark-color);
}

.btn-warning {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-warning:hover {
    background: #555555;
}

.btn-info {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-info:hover {
    background: #555555;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--light-color);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--dark-color);
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--light-color);
}

/* Make payment requests table wider in dashboard tabs by reducing side spacing */
.dashboard-container .card-body .table-responsive {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.dashboard-container .card-body .table-responsive .data-table {
    width: 100%;
}

/* Make checkbox column narrower in dashboard tables */
.dashboard-container .card-body .table-responsive .data-table th:first-child,
.dashboard-container .card-body .table-responsive .data-table td:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 0.5rem;
    text-align: center;
}

/* IT Dashboard: Make Department column wider in All Requests tab */
.dashboard-container:has(> .dashboard-tabs) .tab-content-container .data-table th:nth-child(7),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container .data-table td:nth-child(7) {
    min-width: 140px;
    width: 140px;
}

/* Make ID column wider for all dashboards */
/* For dashboards without checkbox (ID is 1st column) - exclude IT dashboard */
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body .table-responsive .data-table th:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body .table-responsive .data-table td:nth-child(1) {
    min-width: 80px;
    width: 80px;
}
/* For IT dashboard with checkbox (ID is 2nd column) */
.dashboard-container:has(> .dashboard-tabs) .tab-content-container .data-table th:nth-child(2),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container .data-table td:nth-child(2) {
    min-width: 80px;
    width: 80px;
}

/* Make ID column wider for Recurring, My Requests, Completed, and Rejected tabs */
/* For dashboards without checkbox (ID is 1st column) - higher specificity to override default */
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-recurring .data-table th:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-recurring .data-table td:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-my_requests .data-table th:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-my_requests .data-table td:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-completed .data-table th:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-completed .data-table td:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-rejected .data-table th:nth-child(1),
.dashboard-container:not(:has(> .dashboard-tabs)) .card-body #tab-content-rejected .data-table td:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-recurring .data-table th:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-recurring .data-table td:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-my_requests .data-table th:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-my_requests .data-table td:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-completed .data-table th:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-completed .data-table td:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-rejected .data-table th:nth-child(1),
.dashboard-container:has(> .dashboard-tabs) .tab-content-container #tab-content-rejected .data-table td:nth-child(1) {
    min-width: 120px !important;
    width: 120px !important;
}

.data-table th.scheduled-date-col,
.data-table td.scheduled-date-col {
    max-width: 120px;
    width: 120px;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.9rem;
    padding: 0.5rem 0 0.5rem 0.5rem;
    margin-right: -0.5rem !important;
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    /* Restore reasonable spacing between the Completed and Amount columns */
    padding-right: 0.75rem !important;
    margin-right: 0 !important;
}

.data-table th:nth-child(8),
.data-table td:nth-child(8) {
    padding-left: 0.75rem !important;
    margin-left: 0 !important;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: var(--dark-color);
    color: var(--white);
}

.badge-success {
    background: var(--dark-color);
    color: var(--white);
}

.badge-danger {
    background: var(--dark-color);
    color: var(--white);
    border: 2px solid var(--dark-color);
}

.badge-warning {
    background: var(--secondary-color);
    color: var(--white);
}

.badge-info {
    background: var(--secondary-color);
    color: var(--white);
}

/* ==================== ALERTS ==================== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: #f5f5f5;
    color: #000000;
    border-left: 4px solid var(--dark-color);
}

/* Centered error modal for important flash errors */
.flash-error-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.flash-error-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.flash-error-dialog {
    position: relative;
    max-width: 480px;
    width: 90%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px 24px;
    z-index: 2001;
}

.flash-error-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #c82333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.flash-error-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    background-color: #c82333 !important;
    background: #c82333 !important;
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    position: relative;
}

.flash-error-title i::before {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    z-index: 1;
    position: relative;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* Replace fa-exclamation-circle content with just exclamation mark (no circle) */
.flash-error-title i.fa-exclamation-circle::before {
    content: "\f12a" !important; /* fa-exclamation Unicode */
}

.flash-error-body {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 16px;
}

.flash-error-actions {
    text-align: right;
}

.flash-error-ok-btn {
    min-width: 80px;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    background-color: #c82333;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.flash-error-ok-btn:hover {
    background-color: #a71d2a;
}

body.flash-error-open {
    overflow: hidden;
}

.alert-danger {
    background: #f5f5f5;
    color: #000000;
    border-left: 4px solid var(--dark-color);
}

.alert-warning {
    background: #f5f5f5;
    color: #000000;
    border-left: 4px solid var(--secondary-color);
}

.alert-info {
    background: #f5f5f5;
    color: #000000;
    border-left: 4px solid var(--secondary-color);
}

.close-alert {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.close-alert:hover {
    opacity: 1;
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.modal-content .close:hover {
    color: var(--danger-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== DETAILS VIEW ==================== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
    border-left: 4px solid var(--dark-color);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.detail-item label i {
    margin-right: 0.3rem;
    color: var(--dark-color);
}

.detail-item span {
    display: block;
    color: var(--dark-color);
}

.detail-item .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.detail-item .text-warning {
    color: var(--secondary-color);
    font-style: italic;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ==================== TABS ==================== */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* IT Dashboard: Align tab-content-container with dashboard-tabs by reducing side spacing */
.dashboard-container:has(> .dashboard-tabs) .tab-content-container {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    width: calc(100% + 1rem);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: var(--dark-color);
    color: var(--dark-color);
}

.tab-btn.active {
    background: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ==================== NO DATA STATE ==================== */
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data p {
    font-size: 1.1rem;
}

/* ==================== ERROR PAGES ==================== */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.error-container {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.error-container p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: var(--secondary-color);
    margin: 0;
}

/* ==================== MAINTENANCE BANNER ==================== */
.maintenance-banner {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem 0;
}

.maintenance-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==================== REAL-TIME UPDATES ==================== */
.realtime-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.realtime-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.realtime-notification i {
    font-size: 1.5rem;
    animation: ringBell 0.5s ease infinite;
}

@keyframes ringBell {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.refresh-indicator i {
    color: #4CAF50;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.refresh-indicator strong {
    color: var(--dark-color);
    font-weight: 700;
}

.refresh-indicator .last-update {
    color: var(--secondary-color);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.data-table tbody {
    transition: opacity 0.3s ease;
}

/* ==================== TABLE ACTIONS ==================== */
.data-table td:last-child {
    white-space: nowrap;
}

.data-table td:last-child .btn {
    margin-right: 0.5rem;
}

.data-table td:last-child .btn:last-child {
    margin-right: 0;
}

.data-table td:last-child form {
    display: inline;
}

/* ==================== NOTIFICATIONS ==================== */
.notification-badge {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.notifications-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-preview {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white);
    transition: var(--transition);
}

.notification-preview.unread {
    border-left: 4px solid var(--dark-color);
    background: #f8f9fa;
}

.notification-preview:hover {
    box-shadow: var(--shadow);
}

.notification-preview-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    color: var(--dark-color);
}

.notification-dot {
    color: #ff4444;
    font-size: 0.5rem;
}

.notification-preview-message {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.notification-preview-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white);
    transition: var(--transition);
}

.notification-item.unread {
    border-left: 4px solid var(--dark-color);
    background: #f8f9fa;
}

.notification-item:hover {
    box-shadow: var(--shadow);
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.notification-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
    white-space: nowrap;
}

.notification-message {
    color: var(--dark-color);
    margin: 0;
    line-height: 1.5;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ==================== PAGINATION ==================== */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 5px;
}

.pagination-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.items-per-page label {
    font-weight: 600;
    color: var(--dark-color);
}

.items-per-page select {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--white);
    font-size: 0.85rem;
}

.items-per-page select:focus {
    outline: none;
    border-color: var(--dark-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.items-per-page span {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* ==================== CLICKABLE STAT CARDS ==================== */
.clickable-stat {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clickable-stat:active {
    transform: translateY(0);
}

.filter-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-indicator .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
}

.pagination .btn-outline {
    background: var(--white);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.pagination .btn-outline:hover {
    background: var(--light-color);
    border-color: var(--dark-color);
}

.pagination .btn-primary {
    background: var(--dark-color);
    color: var(--white);
    border: 1px solid var(--dark-color);
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .nav-container {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-brand {
        order: 1;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
        border-radius: 5px;
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }

    .nav-user {
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding-left: 0;
        padding-top: 1rem;
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .notification-bell-container {
        width: 100%;
    }

    .notification-bell {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding: 0 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* ==================== NEW RECURRING MODAL ==================== */
.recurring-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.recurring-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: overlayFadeIn 0.3s ease-out;
}

.recurring-modal-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 1% auto;
    width: 90%;
    max-width: 900px;
    max-height: 95vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.recurring-modal-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.recurring-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
    position: relative;
}

.header-content i {
    font-size: 24px;
    opacity: 0.9;
}

.header-content h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.recurring-modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.config-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.config-section h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-section h3 i {
    color: #000000;
    font-size: 18px;
}

/* Frequency Options */
.frequency-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.frequency-option {
    position: relative;
    cursor: pointer;
}

.frequency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.option-card:hover::before {
    left: 100%;
}

.option-card i {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 8px;
    display: block;
}

.option-card span {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.frequency-option input:checked + .option-card {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-color: #000000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.frequency-option input:checked + .option-card i,
.frequency-option input:checked + .option-card span {
    color: white;
}

/* Interval Configuration */
.interval-config {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.interval-config label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.interval-config input {
    width: 80px;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.interval-config input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.interval-config span {
    font-weight: 600;
    color: #6c757d;
    font-size: 16px;
}

/* Specific Options */
.specific-options {
    margin-top: 20px;
}

.time-selection {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-selection label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.time-selection input {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.time-selection input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Weekday Grid */
.weekday-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.weekday-option {
    position: relative;
    cursor: pointer;
}

.weekday-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday-option span {
    display: block;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.weekday-option:hover span {
    border-color: #000000;
    background: #f5f5f5;
}

.weekday-option input:checked + span {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-color: #000000;
    color: white;
    transform: scale(1.05);
}

/* Calendar Styles */
.month-year-selector {
    margin-bottom: 20px;
}

.date-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.date-selector select {
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    min-width: 120px;
}

.date-selector select:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.calendar-container {
    margin-top: 20px;
}

.calendar-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

.calendar-day {
    width: 100%;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-sizing: border-box;
    min-width: 0;
    flex: 1;
}

.calendar-day:hover {
    border-color: #000000;
    background: #f5f5f5;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-color: #000000;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
    background: transparent;
}

.calendar-day.current-date {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 600;
}

.calendar-day.current-date:hover {
    border-color: #000000;
    background: #f5f5f5;
    transform: scale(1.05);
}

/* Current Configuration Display */
.current-config {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.config-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.config-display i {
    font-size: 20px;
    color: #000000;
}

.config-text {
    flex: 1;
}

.config-text strong {
    color: #495057;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.config-text span {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.btn-edit-config {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit-config:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Day Selection Grid (Legacy - keeping for other options) */
.day-selection-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.day-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-btn:hover {
    border-color: #000000;
    background: #f5f5f5;
    transform: scale(1.05);
}

.day-btn.selected {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-color: #000000;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Month Grid */
.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.month-option {
    position: relative;
    cursor: pointer;
}

.month-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.month-option span {
    display: block;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.month-option:hover span {
    border-color: #000000;
    background: #f5f5f5;
}

.month-option input:checked + span {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-color: #000000;
    color: white;
    transform: scale(1.05);
}

/* Schedule Preview */
.schedule-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-content i {
    font-size: 24px;
    color: #000000;
}

.preview-text {
    flex: 1;
}

.preview-text strong {
    color: #495057;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.preview-text span {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Modal Footer */
.recurring-modal-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-cancel, .btn-save {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-save {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
}

.btn-save:hover {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes overlayFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .recurring-modal-container {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .recurring-modal-header {
        padding: 20px;
    }
    
    .recurring-modal-body {
        padding: 20px;
    }
    
    .frequency-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .date-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-selector select {
        min-width: 100%;
    }
    
    .calendar-day {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .calendar-day-header {
        font-size: 10px;
        padding: 6px 2px;
    }
    
    .day-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .day-selection-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .month-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .weekday-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== PROJECT DASHBOARD STYLES ==================== */

/* Due Date Notifications */
.due-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.due-date i {
    font-size: 0.9rem;
}

.due-text {
    white-space: nowrap;
}

/* Status Badges for Project Notifications */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
}

.status-badge.overdue {
    background: #dc3545;
    color: white;
}

.status-badge.due-today {
    background: #ffc107;
    color: #212529;
}

.status-badge.due-soon {
    background: #17a2b8;
    color: white;
}

/* Notification Items for Project */
.notification-item.overdue {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.notification-item.due-today {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
}

.notification-item.due-soon {
    border-left: 4px solid #17a2b8;
    background: #f0f9ff;
}

/* ==================== VARIABLE AMOUNT STYLES ==================== */
.variable-amount-config {
    margin-top: 1rem;
}

.amount-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-weight: 500;
    color: #333;
}

.variable-amounts-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.total-amount-display {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #e3f2fd;
    border-radius: 4px;
    font-weight: 600;
    color: #1976d2;
}

.payment-amounts-list {
    margin-bottom: 1rem;
}

.payment-amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.payment-info {
    display: flex;
    flex-direction: column;
}

.payment-info label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.payment-date {
    font-size: 0.9rem;
    color: #666;
}

.amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: #666;
    font-weight: 600;
    z-index: 1;
}

.payment-amount-input {
    padding: 0.5rem 0.5rem 0.5rem 3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 120px;
    text-align: right;
}

.payment-amount-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.amount-summary {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #1976d2;
    border-top: 1px solid #e0e0e0;
    padding-top: 0.5rem;
}

/* Add Payment Button */
.add-payment-section {
    margin-top: 1rem;
    text-align: center;
}

.btn-add-payment {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-payment:hover:not(:disabled) {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-add-payment:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.btn-remove-payment {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-remove-payment:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

/* Updated Payment Amount Item Layout */
.payment-amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.payment-amount-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #2196F3;
}

.payment-amount-item:last-child {
    margin-bottom: 0;
}

/* ==================== CALENDAR DATE VALIDATION ==================== */
.calendar-day.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
    color: #999 !important;
    pointer-events: none;
}

.calendar-day.disabled:hover {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    transform: none !important;
}

/* Ensure disabled days don't get selected styling */
.calendar-day.disabled.selected {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border: 1px solid #ddd !important;
}

/* ==================== STEP TABS ==================== */
.step-tabs-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.step-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-tab {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #e9ecef;
}

.step-tab:last-child {
    border-right: none;
}

.step-tab-content {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.step-tab.completed .step-tab-content {
    background: #28a745;
    color: white;
    font-weight: 600;
}

.step-tab.completed .step-tab-content::before {
    content: "✓";
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-tab.active .step-tab-content {
    background: #007bff !important;
    color: white !important;
    font-weight: 600 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    position: relative;
}

.step-tab.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.step-tab.disabled .step-tab-content {
    background: #f8f9fa;
    color: #adb5bd;
}

.step-tab.warning .step-tab-content {
    background: #ffc107;
    color: #212529;
    font-weight: 600;
}

/* ==================== VIEW REQUEST PAGE SPECIFIC TAB STYLES ==================== */
/* These styles are specifically for the view request page tabs and override the general step tab styles */
.view-request-page .step-tab.rejected .step-tab-content {
    background: #dc3545 !important;
    color: white !important;
    font-weight: 600 !important;
}

.view-request-page .step-tab.rejected .step-tab-content::before {
    content: "✗" !important;
    margin-right: 0.5rem !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

.view-request-page .step-tab.warning .step-tab-content::before {
    content: "⏳" !important;
    margin-right: 0.5rem !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

.view-request-page .step-tab.rejected:hover .step-tab-content {
    background: #c82333 !important;
}

.view-request-page .step-tab.warning .step-tab-content {
    background: #ffc107 !important;
    color: #212529 !important;
    font-weight: 600 !important;
}

.view-request-page .step-tab.warning:hover .step-tab-content {
    background: #e0a800 !important;
}

.view-request-page .step-tab.completed .step-tab-content {
    background: #28a745 !important;
    color: white !important;
    font-weight: 600 !important;
}

.view-request-page .step-tab.completed .step-tab-content::before {
    content: "✓" !important;
    margin-right: 0.5rem !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
}

.step-content {
    display: none;
    padding: 2rem;
    background: white;
}

.step-content.active {
    display: block;
}

.step-content h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.step-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.action-required {
    background: #ffeaa7;
    color: #6c5ce7;
}

.status-badge.payment-pending {
    background: #ffc107;
    color: #212529;
}

.urgent-badge {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0% {
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.5);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }
}

.admin-mode-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.admin-mode-warning i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* ==================== PROOF OF PAYMENT CONTAINERS ==================== */
.proof-container {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.proof-container.rejected {
    background: #f8d7da;
    border-color: #dc3545;
    border-left: 4px solid #dc3545;
}

.proof-container.rejected .proof-header {
    color: #721c24;
    font-weight: 600;
}

.proof-container.rejected .proof-item {
    background: #fff5f5;
    border-color: #f5c6cb;
}

.proof-container .proof-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.proof-container.rejected .proof-header {
    border-bottom-color: #f5c6cb;
}

.proof-container .proof-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proof-container .proof-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.proof-container .proof-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.proof-container .proof-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proof-container .proof-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proof-container .proof-label {
    font-weight: 500;
    color: #495057;
}

.proof-container .proof-status {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.proof-container .reject-button {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.proof-container .reject-button:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.proof-container .reject-button i {
    margin-right: 4px;
}

/* ==================== PAYMENT INSTALLMENTS STYLES ==================== */
.installments-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.installments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.installments-list {
    max-height: 300px;
    overflow-y: auto;
}

.installment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.installment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: #007bff;
}

.installment-info {
    flex: 1;
}

.installment-amount {
    text-align: right;
}

.installments-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.installment-number {
    background: #6c757d;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.installment-date {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.installment-day {
    font-size: 0.8rem;
    color: #6c757d;
}

.installment-amount-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
}

.installment-status {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

.installment-status.paid {
    color: #28a745;
}

.installment-status.late {
    color: #dc3545;
}

.installment-status.pending {
    color: #6c757d;
}

/* Payment Interval Tabs */
.interval-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0;
}

.interval-tab {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.interval-tab:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.interval-tab.active {
    color: #007bff;
    border-color: #007bff;
    background: #e7f3ff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.interval-tab i {
    font-size: 24px;
    margin-bottom: 5px;
}

.interval-tab span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Interval Config Content */
.interval-config-content {
    min-height: 200px;
}

/* Custom Date Configuration */
.custom-date-config {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.custom-dates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.custom-dates-header label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.btn-add-date {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

.btn-add-date:hover {
    background: #0056b3;
}

.btn-add-date:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-add-date:disabled:hover {
    background: #6c757d;
}

.custom-dates-list {
    margin-bottom: 20px;
}

.custom-date-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.custom-date-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.custom-date-item input[type="date"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.custom-date-item input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.custom-date-item .date-label {
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.custom-date-item .amount-label {
    font-weight: 500;
    color: #495057;
    min-width: 60px;
}

.btn-remove-date {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-remove-date:hover {
    background: #c82333;
}

.custom-dates-info {
    padding: 12px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    color: #004085;
}

.custom-dates-info p {
    margin: 0;
    font-size: 14px;
}

.custom-dates-info i {
    margin-right: 6px;
    color: #007bff;
}

/* Custom date empty state */
.custom-dates-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.custom-dates-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.custom-dates-empty p {
    margin: 0;
    font-size: 16px;
}

/* Custom Amount Summary */
.custom-amount-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.custom-amount-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    font-weight: 500;
}

.custom-amount-summary .summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 15px;
    color: #495057;
}

.custom-amount-summary .summary-row:last-child span:last-child {
    color: #28a745;
    font-weight: 700;
}

