:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #7209b7;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
}

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

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
}

.main-container {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 25px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.table thead {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #f1f1f1;
}

.table tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    color: white;
}

.btn-danger {
    background: linear-gradient(to right, var(--warning-color), #b5179e);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
    color: white;
}

.btn-warning {
    background: linear-gradient(to right, #f8961e, #f3722c);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 150, 30, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(to right, #4cc9f0, #4895ef);
    border: none;
    border-radius: 8px;
    /* padding: 8px 16px; */
    font-weight: 600;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4);
    color: white;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    border-color: var(--primary-color);
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    height: 100%;
    width: 100%;
}

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    text-align: center;
    border-radius: 15px 15px 0 0;
    margin-top: 40px;
}

.badge {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
}

.bg-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)) !important;
}

.bg-success {
    background: linear-gradient(to right, #4cc9f0, #4895ef) !important;
}

.bg-info {
    background: linear-gradient(to right, #7209b7, #560bad) !important;
}

.bg-warning {
    background: linear-gradient(to right, #f8961e, #f3722c) !important;
}

.bg-danger {
    background: linear-gradient(to right, var(--warning-color), #b5179e) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
        margin: 10px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-group .btn {
        margin: 2px;
        padding: 6px 12px;
        font-size: 0.875rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    animation: fadeIn 0.6s ease-out;
}

.table tbody tr {
    animation: fadeIn 0.4s ease-out;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}