/* 상단 네비게이션 */
.main-navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    cursor: pointer;
}

.navbar-brand:hover {
    color: #ecf0f1 !important;
}

/* 메인 메뉴 */
.main-menu {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
}

.menu-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover, .menu-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* 프로필 드롭다운 */
.profile-dropdown {
    position: relative;
}

.profile-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 1rem;
    min-width: 250px;
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.profile-info {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-info h6 {
    margin: 0;
    color: var(--dark-text);
    font-weight: 600;
}

.profile-info small {
    color: #6c757d;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.75rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online { background-color: var(--success-color); }
.status-offline { background-color: var(--danger-color); }

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-menu-item:hover {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* 모바일 헤더 스타일 */
.mobile-navbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mobile-navbar-brand:hover {
    color: #ecf0f1 !important;
}

.mobile-navbar-brand i {
    font-size: 1rem;
}

.mobile-navbar-brand span {
    font-size: 1.1rem;
}

/* 모바일 인라인 메뉴 */
.mobile-inline-menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mobile-inline-item {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.mobile-inline-item:hover,
.mobile-inline-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* 모바일 프로필 */
.mobile-profile {
    position: relative;
}

.mobile-profile-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.mobile-profile-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-profile-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 1rem;
    min-width: 200px;
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-profile-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 모바일 로그인 */
.mobile-login {
    display: flex;
    align-items: center;
}

.mobile-login .btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 모바일 반응형 - 헤더 */
@media (max-width: 768px) {
    .main-navbar {
        padding: 0.3rem 0;
    }

    .profile-menu {
        min-width: 200px;
        right: -10px;
    }
}

/* 초소형 모바일 (350px 이하) */
@media (max-width: 350px) {
    .mobile-navbar-brand {
        font-size: 1rem;
    }

    .mobile-navbar-brand i {
        font-size: 0.9rem;
    }

    .mobile-navbar-brand span {
        font-size: 1rem;
    }

    .mobile-inline-menu {
        gap: 0.2rem;
    }

    .mobile-inline-item {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .mobile-profile-button {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .mobile-login .btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}