/**
 * CVQ Lesson Plan Generator - Frontend Styles
 */

.cvq-lesson-plan-generator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Word Limit Info */
.cvq-word-limit-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.cvq-word-limit-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.cvq-usage-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cvq-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

.cvq-usage-fill[style*="100%"] {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.cvq-usage-text {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

.cvq-usage-period {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #6c757d;
}

/* Form Styles */
.cvq-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.cvq-form-section h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.cvq-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.cvq-form-group {
    display: flex;
    flex-direction: column;
}

.cvq-form-group-full {
    flex: 1 1 100%;
}

.cvq-form-group-half {
    flex: 1 1 calc(50% - 10px);
}

.cvq-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cvq-required {
    color: #dc3545;
    margin-left: 3px;
}

.cvq-input,
.cvq-textarea,
.cvq-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.cvq-input:focus,
.cvq-textarea:focus,
.cvq-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.cvq-textarea {
    resize: vertical;
    font-family: inherit;
}

/* Form Actions */
.cvq-form-actions {
    margin-top: 30px;
    text-align: center;
}

.cvq-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cvq-button-primary {
    background: #007bff;
    color: #fff;
    min-width: 200px;
}

.cvq-button-primary:hover {
    background: #0056b3;
}

.cvq-button-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.cvq-button-secondary {
    background: #6c757d;
    color: #fff;
    margin: 0 5px;
}

.cvq-button-secondary:hover {
    background: #545b62;
}

.cvq-button-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cvq-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cvq-spin 0.6s linear infinite;
}

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

/* Result Container */
.cvq-result-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.cvq-result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

/* Generate Tables Button - Make it prominent */
#cvq-generate-tables-btn {
    font-size: 18px;
    padding: 15px 40px;
    background: #28a745;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#cvq-generate-tables-btn:hover {
    background: #218838;
}

.cvq-result-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow-x: auto;
}

/* Lesson Plan Header */
.cvq-lesson-header {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #000;
    border-radius: 4px;
}

.cvq-lesson-header p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.cvq-lesson-header strong {
    display: inline-block;
    min-width: 180px;
    font-weight: 600;
}

.cvq-result-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #000;
}

.cvq-result-content th,
.cvq-result-content td {
    border: 1px solid #000;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.cvq-result-content th {
    background: #f0f0f0;
    font-weight: bold;
}

/* Procedures table section headers */
.cvq-result-content td[colspan] {
    background: #e8e8e8;
    font-weight: bold;
    text-align: center;
}

/* Objectives heading */
.cvq-result-content h2,
.cvq-result-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
}

.cvq-result-content h1 {
    font-size: 24px;
    margin: 20px 0 10px 0;
    color: #333;
}

.cvq-result-content h2 {
    font-size: 20px;
    margin: 20px 0 10px 0;
    color: #333;
}

.cvq-result-content h3 {
    font-size: 16px;
    margin: 15px 0 10px 0;
    color: #333;
}

.cvq-result-content ul,
.cvq-result-content ol {
    margin: 10px 0;
    padding-left: 30px;
}

.cvq-result-content p {
    margin: 10px 0;
    line-height: 1.6;
}

/* Messages */
.cvq-message-container {
    margin-top: 20px;
}

.cvq-notice {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.cvq-notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cvq-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.cvq-notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cvq-lesson-plan-generator {
        padding: 10px;
    }

    .cvq-form {
        padding: 20px;
    }

    .cvq-form-group-half {
        flex: 1 1 100%;
    }

    .cvq-result-actions {
        flex-direction: column;
    }

    .cvq-button-secondary {
        margin: 5px 0;
    }

    .cvq-result-content {
        padding: 10px;
    }

    .cvq-result-content table {
        font-size: 12px;
    }

    .cvq-result-content th,
    .cvq-result-content td {
        padding: 8px;
    }
}

/* Loading State */
.cvq-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.cvq-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 123, 255, 0.3);
    border-top-color: #007bff;
    border-radius: 50%;
    animation: cvq-spin 0.8s linear infinite;
}

/* =============================================================
   GUYANESE WEEKLY LESSON PLAN
   ============================================================= */

.gyl-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* ── Section Card ─────────────────────────────────────────── */
.gyl-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.gyl-form-section {
    margin-bottom: 10px;
}

.gyl-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 28px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f0fe;
}

/* ── Field Groups ─────────────────────────────────────────── */
.gyl-field-group {
    margin-bottom: 22px;
}

.gyl-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.gyl-required {
    color: #e53e3e;
    margin-left: 3px;
}

.gyl-optional {
    font-size: 12px;
    font-weight: 400;
    color: #718096;
    margin-left: 6px;
}

.gyl-input,
.gyl-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #2d3748;
    background: #f7faff;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.gyl-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.gyl-input:focus,
.gyl-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    background: #fff;
}

/* ── Buttons ──────────────────────────────────────────────── */
.gyl-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.gyl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.gyl-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.gyl-btn-primary {
    background: #4299e1;
    color: #fff;
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.35);
}

.gyl-btn-primary:hover:not(:disabled) {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(66, 153, 225, 0.45);
}

.gyl-btn-success {
    background: #38a169;
    color: #fff;
    font-size: 17px;
    padding: 15px 36px;
    box-shadow: 0 3px 8px rgba(56, 161, 105, 0.4);
}

.gyl-btn-success:hover:not(:disabled) {
    background: #2f855a;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(56, 161, 105, 0.5);
}

.gyl-btn-secondary {
    background: #edf2f7;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

.gyl-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.gyl-btn-outline {
    background: transparent;
    color: #4a5568;
    border: 1.5px solid #cbd5e0;
}

.gyl-btn-outline:hover:not(:disabled) {
    background: #f7faff;
    border-color: #4299e1;
    color: #3182ce;
}

/* ── Spinner ──────────────────────────────────────────────── */
.gyl-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cvq-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.gyl-btn-secondary .gyl-spinner,
.gyl-btn-outline .gyl-spinner {
    border-color: rgba(74, 85, 104, 0.4);
    border-top-color: #4a5568;
}

/* ── Step 2 — Objectives Section ─────────────────────────── */
.gyl-step2-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.gyl-objectives-section {
    margin-bottom: 20px;
}

.gyl-objectives-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a202c;
    margin-bottom: 6px;
}

.gyl-objectives-hint {
    font-size: 13px;
    color: #718096;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.gyl-objectives-textarea {
    width: 100%;
    min-height: 220px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #2d3748;
    background: #f7faff;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.gyl-objectives-textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    background: #fff;
}

.gyl-char-count {
    text-align: right;
    font-size: 12px;
    color: #a0aec0;
    margin: 4px 0 0 0;
}

.gyl-char-warning {
    color: #e53e3e;
    font-weight: 600;
}

.gyl-step2-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 8px;
}

/* ── Result Container ─────────────────────────────────────── */
.gyl-result-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.gyl-result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

/* Plain-text lesson output — preserves formatting */
.gyl-lesson-output {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #1a202c;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    margin: 0;
}

/* ── Login Notice ─────────────────────────────────────────── */
.gyl-login-notice {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 16px 20px;
    color: #c53030;
    font-size: 15px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .gyl-wrapper {
        padding: 12px;
    }

    .gyl-form,
    .gyl-step2-container,
    .gyl-result-container {
        padding: 20px 16px;
    }

    .gyl-form-actions,
    .gyl-result-actions,
    .gyl-step2-actions {
        flex-direction: column;
    }

    .gyl-btn {
        width: 100%;
        justify-content: center;
    }

    .gyl-lesson-output {
        font-size: 13px;
        padding: 16px;
    }
}

/* =============================================================
   DETAILED LESSON PLANNER (Grade 4–11)  .dtl-*
   ============================================================= */

.dtl-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #333;
}

/* ── Form card ────────────────────────────────────────────── */
.dtl-form-section {
    background: #fff;
    border: 1px solid #dde1e7;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.dtl-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8eaf0;
}

/* ── Field groups ─────────────────────────────────────────── */
.dtl-field-group {
    margin-bottom: 20px;
}

.dtl-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.dtl-required {
    color: #e53e3e;
    margin-left: 3px;
}

.dtl-optional {
    color: #6b7280;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.dtl-input,
.dtl-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.dtl-input:focus,
.dtl-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
    background: #fff;
}

.dtl-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.dtl-form-actions,
.dtl-stage2-actions,
.dtl-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.dtl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-decoration: none;
}

.dtl-btn:active { transform: translateY(1px); }
.dtl-btn:disabled { opacity: .6; cursor: not-allowed; }

.dtl-btn-primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 2px 6px rgba(79,70,229,.30);
}
.dtl-btn-primary:hover:not(:disabled) { background: #4338ca; box-shadow: 0 4px 12px rgba(79,70,229,.35); }

.dtl-btn-success {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(22,163,74,.28);
}
.dtl-btn-success:hover:not(:disabled) { background: #15803d; }

.dtl-btn-secondary {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 2px 6px rgba(14,165,233,.25);
}
.dtl-btn-secondary:hover:not(:disabled) { background: #0284c7; }

.dtl-btn-outline {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}
.dtl-btn-outline:hover:not(:disabled) { background: #eef2ff; }

/* ── Spinner ──────────────────────────────────────────────── */
.dtl-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dtl-spin .7s linear infinite;
    vertical-align: middle;
}

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

/* ── Stage 2 — Objectives area ────────────────────────────── */
.dtl-stage2-container {
    background: #fff;
    border: 1px solid #dde1e7;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.dtl-objectives-label {
    font-size: 16px;
    margin-bottom: 4px;
}

.dtl-objectives-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.dtl-objectives-textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .2s;
}

.dtl-objectives-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.dtl-char-count {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

.dtl-char-warning {
    color: #dc2626;
    font-weight: 600;
}

/* ── Stage 3 — Lesson content + Table ─────────────────────── */
.dtl-stage3-container {
    background: #fff;
    border: 1px solid #dde1e7;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.dtl-lesson-content {
    margin-bottom: 20px;
}

.dtl-lesson-output {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    color: #1f2937;
    max-height: 540px;
    overflow-y: auto;
}

/* ── Table output ─────────────────────────────────────────── */
.dtl-table-container {
    margin-top: 28px;
}

.dtl-table-wrapper {
    font-family: inherit;
}

.dtl-doc-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    background: #1a1a2e;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
}

.dtl-doc-header p {
    margin: 0;
}

.dtl-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d1d5db;
    border-radius: 0 0 8px 8px;
}

.dtl-lesson-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}

.dtl-lesson-table thead tr {
    background: #4f46e5;
    color: #fff;
}

.dtl-lesson-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,.2);
    white-space: nowrap;
}

.dtl-lesson-table th:last-child { border-right: none; }

.dtl-lesson-table tbody tr {
    background: #fff;
}

.dtl-lesson-table td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    vertical-align: top !important;
    line-height: 1.55;
    color: #1f2937;
}

.dtl-lesson-table td p {
    margin: 0 0 6px;
    vertical-align: top;
}

.dtl-lesson-table td p:last-child { margin-bottom: 0; }

.dtl-lesson-table td strong {
    vertical-align: top;
}

/* Column width hints */
.dtl-cell-time       { min-width: 80px; }
.dtl-cell-topic      { min-width: 120px; }
.dtl-cell-objective  { min-width: 160px; }
.dtl-cell-content    { min-width: 160px; }
.dtl-cell-prevknow   { min-width: 130px; }
.dtl-cell-activities { min-width: 180px; }
.dtl-cell-resources  { min-width: 120px; }
.dtl-cell-evaluation { min-width: 130px; }

/* Login notice */
.dtl-login-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 4px;
    color: #92400e;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .dtl-form-section,
    .dtl-stage2-container,
    .dtl-stage3-container {
        padding: 20px 16px;
    }

    .dtl-form-actions,
    .dtl-stage2-actions,
    .dtl-result-actions {
        flex-direction: column;
    }

    .dtl-btn {
        width: 100%;
        justify-content: center;
    }

    .dtl-lesson-output {
        font-size: 13px;
        padding: 14px;
    }
}
