﻿/* ============================================
   BASE STYLES (navbar-base.css)
   Common styles shared across all themes
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-wrapper {
    width: 100%;
}

/* Top Info Bar - Base Structure */
.top-info-bar {
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-name {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-name {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Navigation Bar - Base Structure */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #475569;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 900px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-radius: 8px;
}

    .dropdown-link:hover {
        background: #f1f5f9;
    }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-utilities {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

    .icon-btn:hover {
        background: #f1f5f9;
    }

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .user-profile:hover {
        background: #f1f5f9;
    }

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

.user-role {
    font-size: 0.75rem;
    color: #64748b;
}

.notification-dropdown,
.user-dropdown {
    position: relative;
}

.notification-content,
.user-menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1002;
    border: 1px solid #e2e8f0;
    max-height: 400px;
    overflow-y: auto;
}

    .notification-content.show,
    .user-menu-content.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(5px);
    }

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

    .notification-item:hover {
        background: #f8fafc;
    }

    .notification-item:last-child {
        border-bottom: none;
    }

.notification-message {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.notification-type-warning {
    border-left: 4px solid #f59e0b;
}

.notification-type-error {
    border-left: 4px solid #ef4444;
}

.notification-type-success {
    border-left: 4px solid #10b981;
}

.notification-type-info {
    border-left: 4px solid #3b82f6;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .user-menu-item:hover {
        background: #f1f5f9;
    }

.user-info {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.user-email {
    font-size: 0.8rem;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-center {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        transition: left 0.3s ease;
        z-index: 2000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

        .nav-center.mobile-open {
            left: 0;
        }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-left: 1rem;
    }
}
