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

body {
    background: linear-gradient(135deg, #f5f7fb, #eef3ff);
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page-container {
    margin: 0 auto;
    max-width: 1400px;
    padding: 20px;
}

/* Header */
.header-card {
    background: linear-gradient(135deg, #1f4e79, #2b6ca3);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    margin-bottom: 20px;
    padding: 25px;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Layout */
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: visible;
    padding: 20px;
}

.section-title {
    color: #1f4e79;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.refresh-text {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.model-badge {
    background: #e7eef8;
    border-radius: 999px;
    color: #1f4e79;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 8px 12px;
}

/* Buttons */
.action-btn,
.secondary-btn {
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.action-btn {
    background: #e7eef8;
    border: none;
    color: #1f4e79;
    font-size: 0.95rem;
    margin-bottom: 10px;
    margin-right: 10px;
    padding: 10px 16px;
}

.action-btn:hover {
    background: #1f4e79;
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.action-btn-primary {
    background: #1f4e79;
    color: #ffffff;
}

.action-btn-primary:hover {
    background: #174061;
}

.secondary-btn {
    background: #ffffff;
    border: 1px solid #2c5aa0;
    color: #2c5aa0;
    padding: 8px 14px;
}

.secondary-btn:hover {
    background: #2c5aa0;
    color: #ffffff;
}

.sample-btn {
    background: none;
    border: none;
    color: #1f4e79;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.sample-btn:hover {
    color: #174061;
}

/* Upload and Template Actions */
.sample-data-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 15px;
    gap: 6px;
    margin-bottom: 12px;
    margin-top: 10px;
}

.sample-text {
    color: #4a5568;
    font-size: 0.95rem;
}

.template-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.template-preview-card {
    background: #ffffff;
    border: 1px solid #d6e0f5;
    border-radius: 10px;
    margin-top: 15px;
    padding: 15px;
}

/* Results and Status */
.status-message {
    background: #e7eef8;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #2b6ca3;
    display: inline-block;
    font-weight: 700;
    margin-top: 14px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.status-failed-box {
    background: #fff0f0;
    border-color: #f3b3b3;
    color: #b42318;
}

.prediction-output {
    margin-top: 15px;
}

/* Footer */
.app-footer {
    color: #5f6f82;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 18px 12px 8px;
    font-weight: 500;
    text-align: center;
}
