.card-title {
    font-size: 16px;
    color: #1a3a6b;
    margin-bottom: 16px;
    font-weight: 600;
}

.form-tip {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* Loading */
.loading-card {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #666;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e4ea;
    border-top-color: #2b5ea7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.error-card {
    background: #fff0f0;
    border: 1px solid #ffd4d4;
    border-radius: 8px;
    padding: 16px 20px;
    color: #c00;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Stats bar */
.stats-bar {
    background: #eef3fa;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
}

/* Category sections */
.category-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.category-header {
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.category-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.category-desc {
    font-size: 12px;
    color: #888;
}

.reach-header { background: #fff5f0; border-left: 4px solid #e67e22; }
.reach-header h2 { color: #d35400; }
.match-header { background: #f0f7ff; border-left: 4px solid #2b5ea7; }
.match-header h2 { color: #1a3a6b; }
.safety-header { background: #f0faf0; border-left: 4px solid #27ae60; }
.safety-header h2 { color: #1a7a3a; }

.result-table-wrap {
    overflow-x: auto;
}

.recommend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.recommend-table th {
    background: #f8f9fb;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e4ea;
    white-space: nowrap;
    font-size: 12px;
}

.recommend-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: #555;
}

.recommend-table tbody tr:hover {
    background: #f5f8ff;
}

.rec-college {
    font-weight: 500;
    color: #1a3a6b;
}

.rec-years {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    display: block;
    margin-top: 2px;
}

.rec-loc {
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
    display: block;
    margin-top: 1px;
}

.th-sub {
    font-weight: 400;
    font-size: 11px;
    color: #999;
}

.rec-major {
    font-size: 12px;
    color: #666;
    max-width: 200px;
}

.major-more {
    color: #999;
    font-size: 11px;
}

.rec-score {
    font-weight: 600;
    color: #2b5ea7;
    text-align: center;
}

.rec-rank {
    text-align: right;
}

.rec-plan {
    font-weight: 600;
    color: #060;
    text-align: center;
}

.rec-gap {
    font-weight: 500;
    text-align: center;
}

.reach-header + .result-table-wrap .rec-gap {
    color: #d35400;
}

.match-header + .result-table-wrap .rec-gap,
/* actually need to target cells in specific sections */
#reachTable .rec-gap { color: #d35400; }
#matchTable .rec-gap { color: #2b5ea7; }
#safetyTable .rec-gap { color: #27ae60; }

.empty-category {
    display: none;
    padding: 32px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        gap: 4px;
    }
    .recommend-table td, .recommend-table th {
        padding: 8px 10px;
    }
}
