/* ==============================
   Header
   ============================== */
.header {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px solid #ffd700;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 12px;
    color: #a5d6a7;
    font-weight: 500;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #1b5e20;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: white;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    display: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==============================
   Header Logo Image
   ============================== */
.auth-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ==============================
   Notification Bell & Badge
   ============================== */
.notification-container {
    position: relative;
}

.notification-bell {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    min-width: 20px;
    border-radius: 12px;
    text-align: center;
}

/* ==============================
   Notification Dropdown Panel
   ============================== */
.notification-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 2000;
}

.notification-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mark-all-read {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mark-all-read:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==============================
   Notification List & Items
   ============================== */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: #94a3b8;
}

.notification-loading,
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

/* ==============================
   Notification Footer
   ============================== */
.notification-footer {
    padding: 12px 20px;
    background: #f8fafc;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.notification-footer a {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* ==============================
   Responsive (Mobile)
   ============================== */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .notification-dropdown {
        width: 320px;
        right: -20px;
    }

    .header {
        padding: 1rem;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 28px;
    }
}