:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --primary: #0f766e;
    --primary-hover: #115e59;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: #1e293b;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo { display: flex; align-items: center; gap: 1rem; }
.logo h1 { margin: 0; font-size: 1.25rem; }
.badge { background: #ef4444; color: white; font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; font-weight: bold; text-transform: uppercase; }

.dashboard {
    display: flex;
    flex: 1;
    padding: 1.5rem;
    gap: 1.5rem;
    overflow: hidden;
}

.input-panel, .results-panel {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    width: 50%;
}

.panel-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.panel-header h2 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.panel-header p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

textarea {
    flex: 1;
    padding: 1rem;
    border: none;
    resize: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    background: #f8fafc;
    color: #334155;
}
textarea:focus { outline: none; background: #ffffff; }

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.results-container {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8fafc;
}

/* Grading Card Styles */
.grade-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.grade-card h3 { margin: 0 0 1rem 0; color: var(--primary); border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5rem;}
.score-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.score-high { background: #d1fae5; color: #047857; }
.score-med { background: #fef3c7; color: #b45309; }
.score-low { background: #fee2e2; color: #b91c1c; }
.feedback-text { line-height: 1.6; color: var(--text); font-size: 0.95rem; }