@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: url('/static/img/bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #f8f9fa;
}

/* 遮罩层，让唯美背景变暗一点，保证文字能看清 */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 32, 39, 0.5); /* 稍微偏深蓝的遮罩 */
    z-index: -1;
}

.navbar {
    background: rgba(15, 32, 39, 0.4) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand { font-weight: 700; letter-spacing: 1px; }
.nav-link { transition: all 0.3s ease; }
.nav-link:hover { transform: translateY(-2px); text-shadow: 0 0 8px rgba(255,255,255,0.6); }

.main-container { margin-top: 40px; margin-bottom: 60px; }

/* Premium Glassmorphism Cards & List Items */
.card, .list-group-item {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #fff !important;
    transition: all 0.3s ease;
}

.card:hover, .list-group-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.15) !important;
}

.card-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px 16px 0 0 !important;
}

/* Forms */
.form-control, .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(8px);
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.7); }

/* Tables */
.table { color: #fff; border-color: rgba(255,255,255,0.15); }
.table-hover tbody tr:hover { color: #fff; background-color: rgba(255, 255, 255, 0.15); }
.table thead th { background: rgba(0,0,0,0.4) !important; color: #fff; border-bottom: none; }
.table td { border-color: rgba(255,255,255,0.15); background: transparent !important; color: #fff !important; }

/* Buttons with Icons Optimization */
.btn {
    border-radius: 8px;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: scale(1.05);
}

/* General fixes */
.text-muted { color: rgba(255, 255, 255, 0.7) !important; }
.text-dark { color: #fff !important; } 
.alert { border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); background: rgba(255,255,255,0.15); color: #fff; }
