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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.main-container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-success {
    background: #34a853;
    color: white;
}

.btn-success:hover {
    background: #2d8f47;
}

.btn-danger {
    background: #ea4335;
    color: white;
}

.btn-danger:hover {
    background: #c5221f;
}

.btn-outline {
    background: white;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn-outline:hover {
    background: #e8f0fe;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

table tr:hover {
    background: #f8f9fa;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fef7e0;
    color: #946c00;
    border: 1px solid #ffeeba;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: #e6f4ea; color: #1e7e34; }
.badge-warning { background: #fef7e0; color: #946c00; }
.badge-danger { background: #fce8e6; color: #c5221f; }

.flex-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #999;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 15px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.chart-container {
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #444;
}

.criterion-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.criterion-row .form-input {
    flex: 1;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-upload-area:hover {
    border-color: #1a73e8;
}

.file-upload-area input[type="file"] {
    display: none;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #34a853);
    border-radius: 4px;
    transition: width 0.3s;
}
