:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --light-bg: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimized transitions - only for specific properties to prevent flickering */
input, button, a, .nav-item, .btn, .form-control, .dropdown-item,
.sidebar-item, .card, .modal, .alert, .badge {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    /* Removed scroll-behavior to prevent flickering */
}

/* Modern Login Page Design */
.login-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Video Background */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-video.active {
    opacity: 1;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px 35px;
    width: 100%;
    max-width: 380px;
    min-width: 280px;
    min-height: 400px;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: right 1s cubic-bezier(0.22, 0.61, 0.36, 1),
                left 1s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 1s cubic-bezier(0.22, 0.61, 0.36, 1),
                max-width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                padding 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    60% {
        transform: translateX(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 5px;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #87CEEB, #B0E0E6);
    border-radius: 2px;
    animation: expandWidth 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 50px;
        opacity: 1;
    }
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: #74b9ff;
    box-shadow: 0 0 20px rgba(116, 185, 255, 0.25);
    transform: translateY(-1px) scale(1.02);
    background: rgba(255, 255, 255, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #3ac5e8 0%, #5a9fd8 100%);
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(90, 159, 216, 0.4);
    background: linear-gradient(135deg, #2ab5d8 0%, #4a8fc8 100%);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 5px 15px rgba(90, 159, 216, 0.3);
}

.form-check {
    margin-top: 15px;
}

.form-check-input:checked {
    background-color: #74b9ff;
    border-color: #74b9ff;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.login-footer a:hover {
    color: #5dade2;
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(93, 173, 226, 0.3);
}

/* Responsive Design for Login Page with smooth transitions */
/* Large Desktop */
@media (min-width: 1400px) {
    .login-box {
        max-width: 420px;
        padding: 40px 45px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .login-box {
        max-width: 360px;
        padding: 30px 30px;
        right: 5%;
    }
}

/* Tablet - Center position */
@media (max-width: 992px) {
    .login-box {
        max-width: 340px;
        padding: 25px 25px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .login-header h4 {
        font-size: 1.3rem;
        transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .login-box {
        max-width: 320px;
        padding: 25px 20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .form-label {
        font-size: 0.85rem;
        transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .form-control {
        padding: 7px 12px;
        font-size: 0.9rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-primary {
        padding: 8px;
        font-size: 0.95rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .login-box {
        max-width: calc(100% - 40px);
        min-width: 280px;
        margin: 20px;
        padding: 25px 20px;
        border-radius: 15px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .login-header {
        margin-bottom: 20px;
        transition: margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .login-header h4 {
        font-size: 1.1rem;
        transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 로고 크기 조절 */
    .login-header > div {
        max-width: 200px !important;
        height: 120px !important;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 테스트 계정 정보 박스 */
    .login-box > div:last-child {
        margin-top: 20px;
        padding: 12px;
        font-size: 0.75rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .login-box {
        min-width: 260px;
        padding: 20px 15px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .form-label {
        font-size: 0.8rem;
        transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .form-control {
        padding: 6px 10px;
        font-size: 0.85rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-primary {
        padding: 7px;
        font-size: 0.9rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo-section {
    width: 220px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border-right: 1px solid #dee2e6;
    background: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-logo {
    height: 70px;
    width: auto;
    filter: brightness(0.9) sepia(1) saturate(5) hue-rotate(190deg) contrast(1.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

/* Logo switching with smooth fade transition */
.header-logo-full {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-logo-compact {
    opacity: 0;
    transform: scale(0.8);
    height: 70px;
    filter: brightness(0.9) sepia(1) saturate(5) hue-rotate(190deg) contrast(1.5);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 0;
    height: 100%;
    margin-left: 40px;
    flex: 1;
    transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    padding: 0 30px;
    color: #495057;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 80px;
    border-bottom: 3px solid transparent;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #0d6efd;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
}

.nav-item:hover {
    color: #0d6efd;
}

.nav-item:hover::after {
    width: calc(100% - 60px);
}

.nav-item.active {
    color: #0d6efd;
    border-bottom-color: transparent;
}

.nav-item.active::after {
    width: calc(100% - 60px);
}

/* User Menu */
.header-right {
    display: flex;
    align-items: center;
    padding-right: 30px;
    flex-shrink: 0;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-avatar-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-avatar-wrapper:hover {
    border-color: #1a237e;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.2);
    transform: scale(1.05);
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
    margin-right: 10px;
    white-space: nowrap;
}

.header-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    min-width: 40px;
    min-height: 36px;
}

.header-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.header-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logout-btn {
    background: #f8f9fa;
}

.logout-btn:hover {
    background: #e9ecef;
}

/* Button icon and text styling */
.btn-text {
    display: inline-flex;
    align-items: center;
}

.header-divider {
    width: 1px;
    height: 30px;
    background: #dee2e6;
    margin: 0 5px;
    flex-shrink: 0;
}

.notification-btn {
    position: relative;
    overflow: visible !important;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left Sidebar */
.left-sidebar {
    width: 220px;
    min-width: 220px;
    background: rgba(40, 53, 147, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    min-height: calc(100vh - 80px);
    position: fixed;
    left: 0;
    top: 80px;
    z-index: 100;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset -20px 0 20px -20px rgba(255, 255, 255, 0.15);
}

/* 사이드바 오른쪽 끝 흐릿한 효과 */
.left-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
    z-index: 1;
}

.sidebar-title {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sub-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sub-nav.active {
    max-height: 500px;
}

.sub-nav-item {
    padding: 20px 24px;
    padding-left: 35px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.sub-nav-text {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.sub-nav-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-right: 12px;
}

.sub-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sub-nav-item:hover::before {
    opacity: 1;
}

.sub-nav-item:hover {
    color: white;
    background: rgba(0, 0, 0, 0.2);
    border-left-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.sub-nav-item:hover .sub-nav-icon {
    transform: scale(1.1);
}

.sub-nav-item.active {
    color: white;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0.55) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-left: 5px solid #5db8ff;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    box-shadow: inset 0 0 12px rgba(74, 158, 255, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.18),
                inset 1px 0 10px rgba(255, 255, 255, 0.1);
    transform: translateX(4px) scale(1.01);
    animation: slideInFromLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-nav-item.active .sub-nav-icon {
    transform: scale(1.15);
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(74, 158, 255, 0.65));
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    60% {
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-header h3 {
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 15px 10px;
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: #0d6efd;
}

.sidebar-menu a.active {
    background: rgba(13, 110, 253, 0.1);
    color: #4a9eff;
    border-left-color: #0d6efd;
    font-weight: 500;
}

/* Main Content Area */
.main-container {
    margin-top: 80px;
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, #e8eef5 0%, #f0f4f8 50%, #e3ebf3 100%);
    display: flex;
    overflow: hidden;
}

.content-wrapper {
    flex: 1;
    margin-left: 220px;
    margin-right: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 30px;
    min-width: 0;
    height: calc(100vh - 120px);
    overflow: hidden;
    transition: margin-left 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    /* GPU acceleration for smooth scrolling */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* GPU acceleration for page content containers - disabled when modal is open */
.page-content, .tab-content {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}

/* Disable GPU acceleration when modal is open to fix stacking context */
body.modal-open .page-content,
body.modal-open .tab-content {
    will-change: auto;
    transform: none;
    -webkit-transform: none;
}

.top-bar {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.top-bar h2 {
    color: #212529;
    font-weight: 600;
    font-size: 1.4rem;
}

/* Card Styles */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card h5 {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-card h2 {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 2.2rem;
}

.stat-card .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.badge.bg-success {
    background: #198754 !important;
    color: white !important;
    border: 1px solid #198754;
}

.badge.bg-warning {
    background: #ffc107 !important;
    color: #000 !important;
    border: 1px solid #ffc107;
}

.badge.bg-primary {
    background: #0d6efd !important;
    color: white !important;
    border: 1px solid #0d6efd;
}

.badge.bg-danger {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545;
}

.badge.bg-info {
    background: #0dcaf0 !important;
    color: #000 !important;
    border: 1px solid #0dcaf0;
}

.badge.bg-secondary {
    background: #6c757d !important;
    color: white !important;
    border: 1px solid #6c757d;
}

/* Table Styles */
.data-table {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 35px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.data-table h4 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.data-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.data-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: clamp(10px, 1.5vw, 15px);
    border-bottom: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.data-table tbody td {
    padding: clamp(8px, 1.2vw, 12px);
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Color Label System */
.color-label {
    display: inline-block;
    width: 4px;
    height: 24px;
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Responsive Design */
/* Extra large screens - bigger badge */
@media (min-width: 1600px) {
    .notification-badge {
        font-size: 0.8rem;
        min-width: 24px;
        height: 24px;
        padding: 0 8px;
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 1400px) {
    .nav-item {
        padding: 0 20px;
        font-size: 1rem;
    }

    .notification-badge {
        font-size: 0.75rem;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
    }

    .sub-nav-item {
        padding: 18px 20px;
        padding-left: 30px;
        font-size: 1rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    /* Hide text in sub-nav, show only icons with smooth animation */
    .sub-nav-item {
        padding: 15px;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sub-nav-text {
        opacity: 0;
        transform: translateX(-20px);
        width: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sub-nav-icon {
        margin: 0;
        width: 25px;
        height: 25px;
    }

    /* Reduce sidebar width with smooth transition */
    .left-sidebar {
        width: 80px;
        min-width: 80px;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .logo-section {
        width: 80px;
        min-width: 80px;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Switch to compact logo with smooth fade transition */
    .header-logo-full {
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-logo-compact {
        opacity: 1;
        transform: scale(1);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-title {
        font-size: 0.9rem;
        padding: 15px 5px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content-wrapper {
        margin-left: 80px;
        margin-right: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 20px;
        height: calc(100vh - 110px);
        transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Disable hover expansion on small screens */
    body {
        pointer-events: auto;
    }

    /* Add a class to prevent hover effects */
    body::before {
        content: '';
        display: none;
    }

    /* Mark that we're in responsive mode */
    body::after {
        content: 'responsive';
        display: none;
    }

    /* Reduce nav item padding */
    .nav-item {
        padding: 0 15px;
        font-size: 0.95rem;
    }

    .main-nav {
        margin-left: 20px;
        transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Reduce stat card sizes */
    .stat-card {
        padding: 15px;
    }

    .stat-card h5 {
        font-size: 0.8rem;
    }

    .stat-card h2 {
        font-size: 1.5rem;
        display: flex;
        align-items: baseline;
        gap: 5px;
    }

    .stat-card .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .stat-card small {
        font-size: 0.75rem;
    }

    .stat-unit {
        font-size: 1rem;
    }

    /* Adjust header buttons */
    .header-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 42px;
        min-height: 36px;
    }

    .notification-badge {
        font-size: 0.65rem;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        top: -7px;
        right: -7px;
    }

    /* Hide button text on small screens, keep icons */
    .btn-text {
        display: none;
    }

    .header-btn i {
        margin: 0;
    }

    .user-name {
        display: none !important;
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Adjust table */
    .data-table {
        padding: 20px;
    }

    .data-table h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .data-table thead th {
        padding: 12px;
        font-size: 0.8rem;
    }

    .data-table tbody td {
        padding: 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    /* Further reduce sizes */
    .nav-item {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .header-btn {
        padding: 6px 8px;
        min-width: 36px;
        min-height: 32px;
    }

    .header-divider {
        margin: 0 3px;
    }

    /* Keep icon visible on medium screens */
    .btn-text {
        display: none;
    }

    .header-btn i {
        margin: 0;
    }

    .notification-badge {
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        top: -6px;
        right: -6px;
        border-width: 1.5px;
    }

    .user-avatar-wrapper {
        width: 35px;
        height: 35px;
    }

    .user-info-section {
        gap: 8px;
    }

    .header-right {
        padding-right: 15px;
    }

    .top-header {
        height: 70px;
    }

    .nav-item {
        height: 70px;
    }

    .left-sidebar {
        top: 70px;
        min-height: calc(100vh - 70px);
    }

    .main-container {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }

    .logo-section {
        height: 70px;
    }

    /* Logout button styling already handled above */

    /* Further reduce stat cards */
    .stat-card {
        padding: 12px;
    }

    .stat-card h5 {
        font-size: 0.75rem;
    }

    .stat-card h2 {
        font-size: 1.2rem;
        white-space: nowrap;
        display: flex;
        align-items: baseline;
        gap: 3px;
    }

    .stat-card .badge {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .stat-card small {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .stat-unit {
        font-size: 0.8rem;
    }
}

@media (max-width: 800px) {
    /* Ultra compact for small screens */
    .stat-card {
        padding: 10px;
    }

    .stat-card h5 {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .stat-card h2 {
        font-size: 1rem;
    }

    .stat-card .badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        margin-right: 2px;
    }

    .stat-card small {
        font-size: 0.65rem;
        display: block;
        margin-top: 5px;
    }

    .stat-unit {
        font-size: 0.7rem;
    }

    /* Adjust nav items */
    .nav-item {
        padding: 0 8px;
        font-size: 0.85rem;
    }

    /* Compact content wrapper */
    .content-wrapper {
        margin-right: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 15px;
        height: calc(100vh - 100px);
        border-radius: 20px;
    }

    /* Adjust column breakpoints */
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 10px;
    }
}

/* Vehicle List and Table Enhanced Responsive */
.btn-details {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 1400px) {
    .data-table {
        padding: 30px;
    }

    .btn-details {
        padding: 7px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    /* Table adjustments */
    .data-table {
        padding: 25px;
    }

    .data-table table {
        min-width: 550px;
    }

    .btn-details {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    /* Modal adjustments */
    .modal-dialog {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .data-table {
        padding: 20px;
    }

    .data-table h4 {
        font-size: 1.1rem;
    }

    .btn-details {
        padding: 5px 12px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    /* Status badge responsive */
    .status-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .data-table {
        padding: 15px;
        border-radius: 15px;
    }

    .data-table table {
        min-width: 100%;
    }

    /* Responsive table scroll */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .btn-details {
        padding: 4px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Modal full width on mobile */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-content {
        border-radius: 15px;
    }

    .modal-body {
        padding: 20px;
    }

    /* Form controls in modal */
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .data-table {
        padding: 10px;
        border-radius: 12px;
    }

    /* Hide less important columns */
    .data-table thead th:nth-child(n+6),
    .data-table tbody td:nth-child(n+6) {
        display: none;
    }

    .btn-details {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    /* Full screen modal on small devices */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 15px;
    }

    /* Compact form in modal */
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .form-control, .form-select {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Smooth animations for all screen sizes */
* {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Minimum width to prevent complete collapse */
body {
    min-width: 768px;
    overflow-x: auto;
}

/* Vehicle Registration Form Styles - Clean and Simple */
#vehicle-register label,
#vehicle-register .form-label {
    color: #333333 !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    display: block !important;
    font-size: 13px !important;
}

#vehicle-register .form-control,
#vehicle-register .form-select,
#vehicle-register input[type="text"],
#vehicle-register input[type="number"],
#vehicle-register input[type="date"],
#vehicle-register input[type="file"],
#vehicle-register select,
#vehicle-register textarea {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

#vehicle-register .form-control:focus,
#vehicle-register .form-select:focus,
#vehicle-register input:focus,
#vehicle-register select:focus,
#vehicle-register textarea:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15) !important;
    outline: none !important;
}

#vehicle-register .form-control::placeholder {
    color: #95a5a6;
}

#vehicle-register .btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#vehicle-register .btn-primary:hover {
    background: linear-gradient(135deg, #0055bb 0%, #003388 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
}

#vehicle-register .row {
    margin-bottom: 20px;
}

#vehicle-register h3 {
    color: #333333 !important;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Card style for vehicle registration */
#vehicle-register .card {
    border: 1px solid #dee2e6 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#vehicle-register .card-body {
    background-color: #ffffff !important;
    padding: 25px;
}

/* Image upload area */
#vehicle-register #regImagePreview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

#vehicle-register #regImagePreview:hover {
    border-color: #adb5bd;
    background-color: #f1f3f5;
}

#vehicle-register #regImagePreview img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Custom file upload button */
#vehicle-register .btn-outline-primary,
#vehicle-register .btn-outline-secondary {
    font-size: 14px;
    padding: 8px 16px;
    min-width: 120px;
}

#vehicle-register .btn-outline-secondary {
    border-color: #6c757d;
}

/* Bottom buttons - 초기화, 차량 등록 */
#vehicle-register .d-flex .btn-outline-secondary,
#vehicle-register .d-flex .btn-primary {
    min-width: 120px;
    padding: 10px 20px;
}

/* Gap utility for flexbox */
.gap-2 {
    gap: 0.5rem !important;
}

/* OCR 미입력 필드 하이라이트 - 파스텔톤 얇은 선 */
.form-control.ocr-field-empty,
input.form-control.ocr-field-empty,
select.form-control.ocr-field-empty,
textarea.form-control.ocr-field-empty,
.input-group .form-control.ocr-field-empty,
.ocr-field-empty {
    border: 1px solid #ffb3ba !important;
    background-color: #fff9fa !important;
    animation: pulse-border-soft 1.5s ease-in-out !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 179, 186, 0.15) !important;
}

/* input-group 내부의 OCR 필드 - 동일한 배경색 적용 */
.input-group .ocr-field-empty {
    background-color: #fff9fa !important;
}

/* input-group의 기본 배경색을 흰색으로 통일 */
.input-group .form-control {
    background-color: #ffffff !important;
}

/* input-group-text도 흰색 배경 */
.input-group-text {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

/* Select 요소는 배경색을 훨씬 더 진하게 - 클릭 전에도 확실히 보이게 */
select.form-control.ocr-field-empty,
select.ocr-field-empty {
    background-color: #ffc9d0 !important;
    border: 2px solid #ff8a95 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 138, 149, 0.35) !important;
    color: #495057 !important;
}

/* Focus 상태에서도 파스텔 핑크 유지 */
.form-control.ocr-field-empty:focus,
input.form-control.ocr-field-empty:focus,
select.form-control.ocr-field-empty:focus,
textarea.form-control.ocr-field-empty:focus {
    border-color: #ffb3ba !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 179, 186, 0.2) !important;
}

@keyframes pulse-border-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 179, 186, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 179, 186, 0);
    }
}

/* Center Bootstrap modals vertically */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Sophisticated modal animation */
.modal.fade .modal-dialog {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(0, -30px) scale(0.95);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

/* Smooth backdrop fade */
.modal-backdrop.fade {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal content animation */
.modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalBounce {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Settings Dropdown Menu */
.settings-dropdown-container {
    position: relative;
    display: inline-block;
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1100;
    overflow: hidden;
}

.settings-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.settings-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.settings-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.settings-dropdown-item:last-child {
    border-bottom: none;
}

.settings-dropdown-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1a237e;
    padding-left: 24px;
}

.settings-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-dropdown-item:hover i {
    transform: scale(1.1);
    color: #1a237e;
}

.settings-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #1a237e;
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-dropdown-item:hover::before {
    transform: scaleY(1);
}

/* My Info Modal - Profile Photo Upload Button Hover Effect */
#photoUpload + label:hover {
    background: #283593 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.4);
}

/* My Info Modal - Profile Photo Container */
#myProfilePhoto {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Password visibility toggle button hover */
.modal-body button[onclick^="togglePasswordVisibility"]:hover {
    color: #1a237e !important;
}

/* Password input container */
.modal-body div[style*="position: relative"] input[type="password"],
.modal-body div[style*="position: relative"] input[type="text"] {
    padding-right: 45px;
}

/* My Info Modal - Role Badge Animation */
#myRoleBadge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.05);
        opacity: 0.9;
    }
}

/* My Info Modal - Role Display Input */
#myRoleDisplay {
    font-weight: 600;
    color: #495057;
}

/* My Info Modal & Password Change Modal - Center single button */
#myInfoModal .modal-footer,
#changePasswordModal .modal-footer {
    justify-content: center;
}

/* My Info Modal - Disabled Fields for Non-Admin Users */
#myInfoForm input[readonly],
#myInfoForm select[disabled] {
    background: #f8f9fa !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

#myInfoForm input[readonly]:hover,
#myInfoForm select[disabled]:hover {
    background: #e9ecef !important;
}

/* Tooltip for disabled fields */
#myInfoForm input[readonly]::placeholder,
#myInfoForm select[disabled]::placeholder {
    color: #adb5bd;
}

/* ========================================
   GLASS UI / GLASSMORPHISM STYLES
   Applied to sub-tab backgrounds only
   ======================================== */

/* Glass effect for stat cards in tabs */
.page-content .stat-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Glass effect for data tables in tabs */
.page-content .data-table {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Glass effect for white panels inside tabs (maintenance, vehicle list, etc.) */
.page-content [style*="background: white"],
.page-content [style*="background:white"],
.page-content [style*="background:#fff"],
.page-content [style*="background: #fff"] {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Enhance hover effects for glass UI elements */
.page-content .stat-card:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Glass effect for specific panels in maintenance history */
.page-content #maintenanceVehicleListPanel,
.page-content #selectedVehicleInfo,
.page-content #maintenanceStats > div > div,
.page-content #maintenanceTimeline {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Glass effect for group management panel in vehicle list */
.page-content #groupManagementPanel > div > div {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Vehicle table container - ensure rounded corners */
#vehicleTableContainer > div {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* Vehicle table - rounded corners for first and last rows */
#vehicleTableContainer table thead tr:first-child th:first-child {
    border-top-left-radius: 16px !important;
}

#vehicleTableContainer table thead tr:first-child th:last-child {
    border-top-right-radius: 16px !important;
}

#vehicleTableContainer table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px !important;
}

#vehicleTableContainer table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px !important;
}

/* Glass effect for vehicle filter and search panels */
.page-content .vehicle-filters > div[style*="background"] {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Vehicle section은 투명하게 (뒷배경과 통일) */
.page-content .vehicle-section {
    background: transparent !important;
}

/* Smooth transitions for all glass elements - only specific properties to prevent scroll flicker */
.page-content .stat-card,
.page-content .data-table,
.page-content [style*="background: white"],
.page-content [style*="background:white"] {
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

/* ========================================
   MODAL FIX - Prevent Glass UI from affecting modals
   ======================================== */

/* When modal is open, disable backdrop-filter and GPU acceleration on content-wrapper */
body.modal-open .content-wrapper {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* When modal is open, disable backdrop-filter on sidebar */
body.modal-open .left-sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure modals are above glass UI and not affected by backdrop-filter */
.modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1055 !important;
}

.modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-dialog {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1056 !important;
    position: relative !important;
}

.modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: white !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* Ensure modal is fully interactive */
.modal.show {
    pointer-events: auto !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
    pointer-events: auto !important;
}

/* ========================================
   NOTIFICATION DROPDOWN STYLES
   ======================================== */

/* Notification Dropdown Container */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 380px;
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1100;
    overflow: hidden;
}

.notification-dropdown[style*="display: block"] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Notification Header */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mark-all-read-btn:hover {
    background: #e7f1ff;
    color: #0a58ca;
}

/* Notification List */
.notification-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
}

.notification-item.unread {
    background: linear-gradient(90deg, #e7f3ff 0%, #f0f8ff 100%);
}

.notification-item.unread:hover {
    background: linear-gradient(90deg, #d3eaff 0%, #e7f3ff 100%);
}

/* Notification Icon */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.notification-icon.icon-info {
    background: linear-gradient(135deg, #e7f3ff 0%, #cfe7ff 100%);
    color: #0d6efd;
}

.notification-icon.icon-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #198754;
}

.notification-icon.icon-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    color: #dc3545;
}

.notification-icon.icon-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecb5 100%);
    color: #ffc107;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.notification-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Notification Unread Dot */
.notification-dot {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Responsive Notification Dropdown */
@media (max-width: 480px) {
    .notification-dropdown {
        width: 320px;
        max-height: 400px;
        right: -80px;
    }

    .notification-list {
        max-height: 320px;
    }

    .notification-item {
        padding: 12px 15px;
    }

    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
/* ==================== Statistics Tab Styles ==================== */
/* ========== 통계 탭 스타일 ========== */
.statistics-container {
    padding: 0;
    background: #f5f7fa;
    min-height: 100%;
}

/* 요약 카드 섹션 */
.stats-summary-section {
    background: white;
    padding: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.stats-summary-section h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-summary-section h4 i {
    color: #667eea;
    font-size: 1rem;
}

.stat-summary-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.stat-summary-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-details {
    flex: 1;
    min-width: 0;
}

.stat-details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e293b;
    line-height: 1;
}

.stat-details p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* 차트 섹션 */
.stats-charts-section {
    padding: 0 24px 24px 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    height: 100%;
}

.chart-card h5 {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.chart-card h5 i {
    color: #667eea;
    font-size: 0.95rem;
}

/* 상세 테이블 */
.data-table {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-table h4 {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.data-table h4 i {
    color: #667eea;
    font-size: 0.95rem;
}

.data-table table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.data-table table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e9ecef;
}

.data-table table thead th {
    font-weight: 600;
    padding: 12px 16px;
    border: none;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table table tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.data-table table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table table tbody tr:last-child {
    border-bottom: none;
}

.data-table table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #334155;
}

.data-table table tbody td strong {
    color: #1e293b;
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-block;
}

.status-available {
    background-color: #28a745;
    color: white;
}

.status-in-use {
    background-color: #00BCD4;
    color: white;
}

.status-maintenance {
    background-color: #ffc107;
    color: black;
}

.status-unavailable {
    background-color: #ffc107;
    color: black;
}

.status-unknown {
    background-color: #f1f5f9;
    color: #475569;
}

/* 아이콘 색상 */
.stat-icon.vehicles {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: white;
}

.stat-icon.distance {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-icon.reservations {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-icon.cost {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-summary-section,
    .stats-charts-section {
        padding: 16px;
    }

    .stat-summary-card {
        padding: 16px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .stat-details h3 {
        font-size: 1.5rem;
    }

    .chart-card {
        padding: 16px;
    }

    .data-table {
        padding: 16px;
        overflow-x: auto;
    }

    .data-table table {
        font-size: 0.8125rem;
    }

    .data-table table thead th,
    .data-table table tbody td {
        padding: 10px 12px;
    }
}

/* ========== 리포트 탭 스타일 ========== */
.report-container {
    padding: 0;
    background: #f5f7fa;
    min-height: 100%;
}

/* 필터 섹션 */
.report-filter-section {
    background: white;
    padding: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.report-filter-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.report-filter-section h4 i {
    margin-right: 8px;
    color: #667eea;
}

.report-filter-section .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 8px;
}

.report-filter-section .form-control,
.report-filter-section .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.report-filter-section .form-control:focus,
.report-filter-section .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 요약 카드 섹션 */
.report-summary-section {
    background: white;
    padding: 24px;
    margin-bottom: 20px;
}

.report-summary-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.report-summary-section h4 i {
    margin-right: 8px;
    color: #667eea;
}

.report-summary-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    transition: all 0.2s ease;
}

.report-summary-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.summary-icon.trips {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.summary-icon.distance {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.summary-icon.cost {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.summary-icon.vehicles {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.summary-details {
    flex: 1;
}

.summary-details h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.summary-details p {
    margin: 4px 0 0 0;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* 보고서 내용 섹션 */
.report-content-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.report-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.report-header h4 i {
    margin-right: 10px;
    color: #667eea;
}

.report-actions {
    display: flex;
    gap: 8px;
}

.report-actions .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.report-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 보고서 테이블 */
.report-table-wrapper {
    overflow-x: auto;
}

.report-table-wrapper table {
    margin-bottom: 0;
}

.report-table-wrapper thead {
    background: #f8fafc;
    border-bottom: 2px solid #e9ecef;
}

.report-table-wrapper thead th {
    font-weight: 600;
    padding: 12px 16px;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.report-table-wrapper tbody td {
    padding: 14px 16px;
    color: #334155;
    font-size: 0.9rem;
    vertical-align: middle;
}

.report-table-wrapper tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.report-table-wrapper tbody tr:hover {
    background-color: #f8fafc;
}

.report-table-wrapper tbody tr:last-child {
    border-bottom: none;
}

/* 페이지네이션 */
.report-pagination {
    background: white;
    padding: 20px 24px;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e9ecef;
    border-top: none;
}

.report-pagination .pagination {
    margin: 0;
}

.report-pagination .page-link {
    color: #475569;
    border: 1px solid #e2e8f0;
    margin: 0 4px;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.report-pagination .page-link:hover {
    background-color: #f8fafc;
    border-color: #667eea;
    color: #667eea;
}

.report-pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.report-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .report-filter-section .row > div {
        margin-bottom: 12px;
    }
    
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .report-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .report-actions .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .report-summary-card {
        padding: 16px;
    }
    
    .summary-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .summary-details h3 {
        font-size: 1.5rem;
    }
}

/* 인쇄 스타일 */
@media print {
    .report-filter-section,
    .report-actions,
    .report-pagination {
        display: none !important;
    }
    
    .report-container {
        background: white;
    }
    
    .report-content-section {
        box-shadow: none;
        border: none;
    }
    
    .report-table-wrapper tbody tr:hover {
        background-color: transparent;
    }
}
