body {
    background-color: #f4f7f6;
    min-height: 100vh;
}

.login-page {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-card .card-header {
    background: #fff;
    border-bottom: 0;
    text-align: center;
    padding-top: 30px;
}

.stat-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.table-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-card .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

.photo-thumb {
    width: 48px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.photo-preview {
    max-width: 120px;
    max-height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.badge-status-0 { background-color: #ffc107; color: #000; }
.badge-status-1 { background-color: #198754; }
.badge-status-2 { background-color: #dc3545; }

.qrcode-card {
    text-align: center;
}

.qrcode-card img {
    max-width: 200px;
    margin: 10px 0;
}

/* 导航栏优化 */
.navbar {
    padding-top: 0;
    padding-bottom: 0;
    height: 60px;
    background: linear-gradient(135deg, #198754 0%, #157347 50%, #146c43 100%) !important;
    box-shadow: 0 2px 12px rgba(25, 135, 84, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 0;
    padding-bottom: 0;
    height: 60px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin-right: 2rem;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.navbar-nav .nav-item {
    white-space: nowrap;
}

.navbar-nav .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #fff;
    border-radius: 3px 3px 0 0;
}

.navbar-nav .nav-link i {
    margin-right: 0.4rem;
    font-size: 1rem;
}

/* 下拉菜单优化 */
.navbar .dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    min-width: 180px;
    margin-top: 8px;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown-item {
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item:hover {
    background: #f0fdf4;
    color: #15803d;
}

.navbar .dropdown-item.active {
    background: #198754;
    color: #fff;
}

.navbar .dropdown-item i {
    margin-right: 0.5rem;
    width: 18px;
    text-align: center;
}

.navbar .dropdown-divider {
    margin: 0.4rem 0;
    border-color: #f0f0f0;
}

/* 右侧用户信息 */
.navbar .navbar-nav:last-child .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar .navbar-nav:last-child .nav-link::after {
    display: none;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .navbar {
        height: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar-brand {
        height: auto;
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        height: auto;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar .dropdown-menu {
        margin-top: 0;
        box-shadow: none;
        background: transparent;
        border: 0;
    }

    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
    }

    .navbar .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
}
