/* ============================================
   Project1 Login System - Global Styles
   ============================================ */

/* Theme 1: Golden/Brown/Blue (Default) */
:root {
    --topbar-bg: #d4a574;
    --sidebar-bg: #34495e;
    --accent-color: #d4a574;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Theme 2: Amber Dark */
body.theme-dark {
    --topbar-bg: #e67e22;
    --sidebar-bg: #2d3436;
    --accent-color: #e67e22;
    /* Amber Orange */
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --bg-light: #f7fafc;
    --border-color: #dfe6e9;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Theme 3: Ocean Blue */
body.theme-ocean {
    --topbar-bg: #56c5ff;
    --sidebar-bg: #1b3a57;
    --accent-color: #56c5ff;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --bg-light: #f0f4f8;
    --border-color: #cbd5e0;
    --shadow: 0 4px 6px rgba(15, 76, 129, 0.2);
}

/* Theme 4: Elegant Rose (Bicolor: Deep Blue & Rose) */
body.theme-elegant-rose {
    --topbar-bg: #d81b60;
    /* Classy Rose for Topbar */
    --sidebar-bg: #0d1b40;
    /* Darker Navy for Sidebar */
    --accent-color: #d81b60;
    /* Classy Rose for Buttons/Highlights */
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --bg-light: #fce4ec;
    /* Very light rose background */
    --border-color: #e8c1d9;
    --shadow: 0 4px 6px rgba(26, 35, 126, 0.2);
}

/* Theme 5: Cosmic Purple */
body.theme-cosmic {
    --topbar-bg: #d500f9;
    --sidebar-bg: #311b92;
    --accent-color: #d500f9;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --bg-light: #f3e5f5;
    --border-color: #e1bee7;
    --shadow: 0 4px 6px rgba(74, 20, 140, 0.2);
}

/* Theme 6: Midnight Red */
body.theme-midnight {
    --topbar-bg: #c0392b;
    --sidebar-bg: #0b0c10;
    --accent-color: #c0392b;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --bg-light: #f4f4f4;
    /* DataTables specific override for headers */
    --dt-header-bg: var(--sidebar-bg);
}

/* DataTables Override */
.dataTables_wrapper .dataTables_scrollHead th,
.dataTables_wrapper .dataTable thead th {
    background-color: var(--sidebar-bg) !important;
    background-color: var(--sidebar-bg) !important;
    color: #ffffff !important;
}

.dataTables_wrapper {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Theme 7: Corporate Slate */
body.theme-corporate {
    --topbar-bg: #17a2b8;
    --sidebar-bg: #212529;
    --accent-color: #17a2b8;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(52, 58, 64, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.login-card {
    background: #ffffffd6;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    border: 1px solid #fff;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 120px;
    height: auto;
}

.login-logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 15px;
    font-weight: 600;
}

.login-logo p {
    color: #718096;
    font-size: 14px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--topbar-bg);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-control:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--topbar-bg);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--topbar-bg);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--sidebar-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-login:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.btn-login:disabled:hover {
    background: #cbd5e0;
    transform: none;
}

.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

/* ============================================
   MAIN DASHBOARD STYLES
   ============================================ */

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--topbar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.top-bar-logo img {
    height: 35px;
    width: auto;
}

.top-bar-logo span {
    font-size: 16px;
    font-weight: 600;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: background 0.3s ease;
    border-radius: 5px;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-icon {
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.top-bar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-250px);
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.menu-item {
    margin: 5px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-link i {
    margin-right: 10px;
}

.menu-arrow {
    transition: transform 0.3s ease;
}

.menu-arrow.open {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.submenu.open {
    max-height: 500px;
}

.submenu-item {
    padding: 10px 20px 10px 50px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.submenu-level2 {
    list-style: none;
    background: rgba(0, 0, 0, 0.3);
}

.submenu-level2-item {
    padding: 8px 20px 8px 70px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-level2-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 30px;
    width: calc(100% - 250px);
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
    width: 100%;
}

.content-header {
    background: var(--accent-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    color: white;
}

.content-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.content-body {
    background: white;
    padding: 0;
    /* Removed padding to maximize space */
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.dashboard-content {
    padding: 30px;
    max-width: 100%;
}

/* Module Header Standard Class */
.module-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: var(--accent-color);
    padding: 0 15px;
    border-radius: 5px 5px 0 0;
    color: white;
}

.module-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.module-header .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 10px !important;
    }

    .content-body {
        padding: 10px !important;
        /* Reduced from 30px */
    }

    /* Fix Dashboard List Overflow */
    .content-body ul {
        padding-left: 20px;
        margin-left: 0;
    }

    .content-body ul li {
        margin-bottom: 5px;
        word-wrap: break-word;
        /* Prevent long text from overflowing */
    }

    .users-container {
        padding: 0 !important;
    }

    /* Module Header Mobile Fixes */
    .module-header {
        height: auto !important;
        flex-direction: column;
        align-items: stretch !important;
        padding: 15px !important;
        gap: 15px;
        text-align: center;
    }

    .module-header h2 {
        justify-content: center;
        width: 100%;
        margin-bottom: 5px;
    }

    .module-header .btn {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Form Fixes - Force stacking */
    .form-row {
        display: block !important;
        margin-bottom: 0;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 15px;
        display: block !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
    }

    /* Card View for Tables - Applies to generic .table and specific #usersTable */
    .table thead,
    #usersTable thead {
        display: none;
    }

    .table tbody tr,
    #usersTable tbody tr {
        display: block;
        margin-bottom: 15px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .table tbody td,
    #usersTable tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }

    .table tbody td:last-child,
    #usersTable tbody td:last-child {
        border-bottom: none;
        justify-content: center;
        /* Center action buttons */
    }

    .table tbody td::before,
    #usersTable tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
        text-align: left;
        margin-right: 15px;
    }

    /* Adjust DataTables elements */
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center !important;
        margin-bottom: 10px;
    }

    /* Remove wrapper padding on mobile for full-width card look */
    .dataTables_wrapper {
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Login Container Fix */
    .login-container {
        padding: 15px;
    }

    .login-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   THEME SWITCHER MODAL
   ============================================ */

.theme-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.theme-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.theme-modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

.theme-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.theme-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.theme-preview {
    width: 100%;
    height: 120px;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-preview-default {
    background: #f7fafc;
}

.theme-preview-dark {
    background: #f7fafc;
}

.theme-preview .theme-topbar {
    height: 20px;
    width: 100%;
}

.theme-preview-default .theme-topbar {
    background: #d4a574;
}

.theme-preview-dark .theme-topbar {
    background: #e67e22;
}

.theme-preview-dark .theme-sidebar {
    background: #2d3436;
}

.theme-preview-ocean .theme-topbar {
    background: #56c5ff;
}

.theme-preview-ocean .theme-sidebar {
    background: #1b3a57;
}

.theme-preview-elegant-rose .theme-topbar {
    background: #d81b60;
}

.theme-preview-elegant-rose .theme-sidebar {
    background: #0d1b40;
}

.theme-preview-cosmic .theme-topbar {
    background: #d500f9;
}

.theme-preview-cosmic .theme-sidebar {
    background: #311b92;
}

.theme-preview-midnight .theme-topbar {
    background: #c0392b;
}

.theme-preview-midnight .theme-sidebar {
    background: #0b0c10;
}

.theme-preview-corporate .theme-topbar {
    background: #17a2b8;
}

.theme-preview-corporate .theme-sidebar {
    background: #212529;
}

.theme-option p {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.theme-close {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-close:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ============================================
   CUSTOM ALERT MODAL
   ============================================ */

.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.alert-modal.show {
    display: flex;
}

.alert-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
}

.alert-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.alert-modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 0;
}

.alert-modal-icon.success {
    background: #d4edda;
    color: #155724;
}

.alert-modal-icon.error {
    background: #f8d7da;
    color: #721c24;
}

.alert-modal-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.alert-modal-icon.info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.alert-modal-message {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    white-space: pre-line;
}

.alert-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.alert-modal-btn {
    padding: 7px 18px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-modal-btn-primary {
    background: var(--accent-color);
    color: white;
}

.alert-modal-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.alert-modal-btn-secondary {
    background: #95a5a6;
    color: white;
}

.alert-modal-btn-secondary:hover {
    background: #7f8c8d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   UI COMPONENTS (Tables, Buttons, Badges)
   ============================================ */

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    margin-bottom: 20px;
}

table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 35px !important;
    /* Space between Search/Length and Table */
}

.table th,
.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    color: white;
    /* Always white text on dark header */
    background-color: var(--sidebar-bg);
    /* Match Sidebar Color as requested */
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    line-height: normal;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    color: white;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon-info {
    background-color: #3498db;
}

.btn-icon-info:hover {
    background-color: #2980b9;
    color: white;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

.badge-success {
    background-color: #2ecc71;
}

.badge-danger {
    background-color: #e74c3c;
}

/* Util Classes */
.text-muted {
    color: #95a5a6 !important;
}

.text-danger {
    color: #e74c3c !important;
}

.mt-1 {
    margin-top: 5px !important;
}

.mb-3 {
    margin-bottom: 15px !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--text-dark);
}

.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
/* --- NOTIFICATIONS BELL & DROPDOWN --- */
.notifications-wrapper {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
    border: 2px solid white;
    pointer-events: none;
    min-width: 18px;
    text-align: center;
    z-index: 10;
}

/* Pulse Animation */
.notification-badge.pulse {
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.notifications-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #eee;
    animation: fadeInDown 0.3s ease-out;
}

.notifications-dropdown.active {
    display: block;
}

.notifications-header {
    background: #f8f9fa;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 600;
}

.notifications-header span { color: #333; }
.notifications-header a { font-size: 12px; color: #007bff; text-decoration: none; }
.notifications-header a:hover { text-decoration: underline; }

.notifications-body {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.notification-item:hover {
    background-color: #f0f7ff;
}

.notification-item.unread {
    background-color: #f9fcff;
    border-left: 3px solid #007bff;
}

.notification-item .title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #222;
}

.notification-item .msg {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-item .time {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
