

/* Premium Modern Topbar Styles */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state */
.topbar.scrolled {
    height: 64px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.12);
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo Section */
.topbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    outline: none;
    pointer-events: none;
}

.topbar-logo:hover {
    transform: scale(1.05);
}

.topbar-logo:focus {
    outline: none;
}

.topbar-logo:active {
    outline: none;
}

.topbar-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    outline: none;
    border: none;
}

.logo-text {
    margin-left: 12px;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}


/* 모바일 전용 메인영역 로고 */
.mobile-main-logo {
    display: none;
}



/* Navigation Section */
.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 24px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

.topbar-nav li {
    position: relative;
}

.topbar-nav > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
}

.topbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.topbar-nav > li > a:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateY(-2px);
}

.topbar-nav > li > a:hover::before {
    width: 30px;
}

.topbar-nav > li > a.active {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.topbar-nav > li > a.active::before {
    width: 30px;
}

.topbar-nav a i {
    font-size: 16px;
    opacity: 0.8;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

/* 호버 감지 범위를 넓히기 위한 가상 영역 */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    z-index: 1099;
    pointer-events: auto;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-right: none;
    border-bottom: none;
    transform: translateX(-50%) rotate(45deg);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
    padding-left: 28px;
}

.dropdown-menu a:hover::before {
    height: 60%;
}

.dropdown-menu a i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.dropdown-menu a:hover i {
    color: #667eea;
}

.dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after,
.dropdown.active > a::after {
    transform: rotate(180deg);
}

/* User Section */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 단순한 사용자 위젯 */
.user-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.user-widget:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 사용자 이름 */
.topbar .user-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

/* 로그아웃 버튼 */
.user-widget .logout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px;
    height: 32px;
    background: #f87171;
    color: white;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box;
}

.user-widget .logout-btn:hover {
    background: #ef4444;
}

.user-widget .logout-btn i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    display: block;
}

/* Premium Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 고도화된 로그인 버튼 */
.login-btn {
    position: relative;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.login-btn span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 고도화된 회원가입 버튼 */
.register-btn {
    position: relative;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
            0 4px 15px rgba(102, 126, 234, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.register-btn::after {
    display: none;
}

.register-btn span {
    position: relative;
    z-index: 1;
    transition: padding 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
            0 8px 25px rgba(102, 126, 234, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.register-btn:hover::before {
    left: 100%;
}


.register-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Mobile Menu Toggle */

.mobile-top-right {
    display: none;
}


.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    /*background: rgba(0, 0, 0, 0.05);*/
}
.mobile-menu-toggle:focus {
    box-shadow: unset;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #4a5568;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 11px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 11px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 50%;
    margin-top: -1px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    bottom: 50%;
    margin-bottom: -1px;
}

/* Layout adjustments */
.app-layout {
    padding-top: 72px;
}

.main-content {
    margin-left: 0;
}

.mobile-user-widget {
    display: none;
}


/* 관리자메뉴 PC용 모바일용 별도 구성 */
.topnav-mobile {
    display: none;
}


/* 개발요청 알림 */

.dev-noti {
    background-color: #eee;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ccc;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.noti-label {
    padding-left: 15px;
}
.noti-count {
    font-size: 1rem;
    padding-right: 30px;
}
.noti-count.active {
    color: #f30;
    font-weight: 700;
}

.noti-label span {
    display: inline-block;
    vertical-align: middle;
    color: #444;
    margin-left: 5px;
}
.noti-label svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}





@media (max-width: 768px) {
    .app-layout {
        padding-top: 60px;
    }

    /* 관리자메뉴 PC용 모바일용 별도 구성 */
    .topnav-desktop {
        display: none;
    }
    .topnav-mobile {
        display: unset;
    }
    .topnav-mobile svg {
        width: 16px;
        height: 16px;
        color: #666;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .topbar-nav > li > a span {
        display: none;
    }

    .topbar-nav > li > a {
        padding: 10px 12px;
    }

    .topbar-center {
        margin: 0 24px;
    }

    .user-widget {
        padding: 6px 10px;
        gap: 12px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-widget .logout-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .topbar {
        height: 60px;
        background: none;
        background-color: transparent;
        backdrop-filter: unset;
        -webkit-backdrop-filter: unset;
        border-bottom: 0;
        box-shadow: none;
    }

    .topbar.scrolled {
        /*height: 56px;*/
        background: rgba(255, 255, 255, 0.7);
    }


    .topbar-content {
        position: relative;
        padding: 0 8px;
        justify-content: flex-start;
    }

    /* 로고 위치 변경 */
    .topbar-left {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
    }
    .topbar-left img {
        height: 50px;
    }




        /* 햄버거 메뉴 */
    .mobile-top-right {
        display: flex;
        width: 80px;
        height: 40px;
        margin-left: auto;
        flex-direction: row;
        align-items: center;
        justify-content: right;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: auto;
    }

    /* 우측 사람 아이콘 */
    .btn-top-user {
        border: 0;
        background-color: transparent;
        width: 30px;
        height: 30px;
        margin-right: 5px;
    }

    .btn-top-user:hover,
    .btn-top-user:focus {
        outline: none !important;
    }
    .btn-top-user .icon {
        text-align: center;
    }
    .btn-top-user svg {
        width: 20px;
        height: 20px;
        margin: 0 auto;
    }
    .btn-top-user .label {
        font-size: 11px;
        text-align: center;
        line-height: 1;
        margin-top: -3px;
        white-space: nowrap;
    }

    /* 모바일 상단 메인 로고 */

    .fc-hero-light {
        position: relative;
        padding-top: 30px;
    }

    /*.mobile-main-logo {*/
    /*    position: absolute;*/
    /*    left: 0;*/
    /*    top: 10px;*/
    /*    width: 100%;*/
    /*    height: 50px;*/
    /*    display: block;*/
    /*    text-align: center;*/
    /*}*/

    /*.mobile-main-logo img {*/
    /*    width: 200px;*/
    /*    height: auto;*/
    /*}*/



    /* 오른쪽 요소들 */
    .topbar-right {
        margin-left: 0;

        display: none;
    }


    .topbar-center {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
        padding: 20px;
        margin: 0;
        max-width: 100%;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .topbar-center.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .topbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .topbar-nav li {
        width: 100%;
    }

    .topbar-nav > li > a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .topbar-nav > li > a span {
        display: inline;
    }

    /* 모바일용 로그인/아웃 버튼 */
    .mobile-user-widget {
        display: block;
    }
    .mobile-user-widget > div {
        display: inline-block;
    }
    .mobile-user-widget .user-widget {
        padding-right: 20px;
    }


    /* 모바일에서 드롭다운 메뉴 항목 스타일 개선 */
    .topbar .dropdown-menu a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 18px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #374151 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        margin: 3px 8px !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        transition: all 0.2s ease !important;
        min-height: 44px !important;
        position: relative !important;
    }

    .topbar .dropdown-menu a::before {
        display: none !important;
    }

    .topbar .dropdown-menu a:hover,
    .topbar .dropdown-menu a:active,
    .topbar .dropdown-menu a:focus {
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
        color: #667eea !important;
        transform: translateX(4px) !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
        padding-left: 18px !important;
    }

    /* 아이콘 정렬 수정 */
    .topbar .dropdown-menu a > i {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        font-size: 16px !important;
        color: #9ca3af !important;
        transition: color 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        text-align: center !important;
        line-height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Font Awesome 아이콘 전용 수정 */
    .topbar .dropdown-menu a > i.fas,
    .topbar .dropdown-menu a > i.fa {
        font-size: 15px !important;
        line-height: 20px !important;
    }

    /* 텍스트 정렬 수정 */
    .topbar .dropdown-menu a > span {
        flex: 1 !important;
        display: block !important;
        line-height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .topbar .dropdown-menu a:hover i,
    .topbar .dropdown-menu a:active i,
    .topbar .dropdown-menu a:focus i {
        color: #667eea !important;
    }

    .dropdown-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
        margin-top: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
        border: 1px solid rgba(102, 126, 234, 0.1) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, padding 0.3s ease !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: auto !important;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px !important;
        padding: 8px 0 !important;
    }

    .dropdown-menu::before {
        display: none;
    }

    .auth-buttons {
        gap: 10px;
    }

    .login-btn,
    .register-btn {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 20px;
    }

    .login-btn span,
    .register-btn span {
        font-size: 13px;
    }

    .login-btn span i {
        display: none;
    }

    .register-btn::after {
        display: none;
    }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Smooth scroll for the page */
html {
    scroll-behavior: smooth;
}

/* Login Modal Styles */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    background: white;
    border-radius: 24px;
    padding: 0;
    width: 460px;
    max-width: 95vw;
    box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.login-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.login-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.login-modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    color: white;
    padding: 32px 32px 24px;
    position: relative;
    overflow: hidden;
}

.login-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="g"><stop offset="20%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="50%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23g)"/></svg>');
    opacity: 0.3;
}

.login-modal-header-content {
    position: relative;
    z-index: 2;
}

.login-modal-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-modal-subtitle {
    margin: 8px 0 0;
    font-size: 15px;
    text-align: center;
    opacity: 0.9;
    font-weight: 400;
}

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    z-index: 3;
}

.login-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.login-modal-body {
    padding: 40px 32px 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-input-group {
    position: relative;
}

.login-input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.login-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #4f46e5;
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.login-input:focus + .login-input-icon {
    color: #4f46e5;
    transform: scale(1.1);
}

.login-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.login-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.login-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.login-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-submit-btn:hover::before {
    left: 100%;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-submit-btn:disabled:hover {
    box-shadow: none;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 32px 0 24px;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.login-divider-text {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.login-footer {
    text-align: center;
    padding-top: 8px;
}

.login-footer-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.login-register-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-register-link:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.login-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-error::before {
    content: '⚠️';
    font-size: 16px;
}

.login-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-success::before {
    content: '✅';
    font-size: 16px;
}

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .login-modal {
        width: 100%;
        margin: 20px;
        border-radius: 20px;
    }

    .login-modal-header {
        padding: 24px 20px 20px;
    }

    .login-modal-title {
        font-size: 24px;
    }

    .login-modal-body {
        padding: 32px 20px 24px;
    }

    .login-input {
        padding: 14px 18px 14px 44px;
        font-size: 15px;
    }

    .login-input-icon {
        left: 15px;
        font-size: 16px;
    }

    .login-submit-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
}

/* Print styles */
@media print {
    .topbar {
        display: none !important;
    }

    .app-layout {
        padding-top: 0 !important;
    }

    .login-modal-overlay {
        display: none !important;
    }
}

.disabled-link {
    pointer-events: none;  /* 클릭 막기 */
    opacity: 0.5;          /* 흐리게 */
    cursor: not-allowed;   /* 마우스 커서 변경 */
}

