/* Recours Portal — Professional UI */

:root {
    --color-primary: #0c2d4a;
    --color-primary-mid: #134067;
    --color-primary-light: #1a5080;
    --color-uni-green: #1b7a4e;
    --color-uni-gold: #c9a227;
    --color-accent: #c0392b;
    --color-accent-hover: #a93226;
    --color-bg: #eef2f7;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-border-focus: #1a5080;
    --color-success: #059669;
    --color-success-bg: #ecfdf5;
    --color-error: #dc2626;
    --color-error-bg: #fef2f2;
    --color-warning: #d97706;
    --color-warning-bg: #fffbeb;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 30px rgba(12, 45, 74, 0.08);
    --shadow-lg: 0 20px 50px rgba(12, 45, 74, 0.12);
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.admin-body .container {
    max-width: 1180px;
}

/* Background */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(27, 122, 78, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(26, 80, 128, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #f4f7fb 0%, var(--color-bg) 100%);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeUp 0.5s ease both;
}

.form-card { animation-delay: 0.08s; }

/* Header */
.site-header {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 55%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 1.35rem 0 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.header-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-uni-green), var(--color-uni-gold), var(--color-uni-green));
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.logo {
    object-fit: contain;
    background: transparent;
}

.logo-dev {
    height: 52px;
    width: auto;
    max-width: 130px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.logo-uni {
    height: 62px;
    width: auto;
    max-width: 190px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.logo-dev-admin {
    height: 36px;
    width: auto;
    max-width: 110px;
}

.header-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 0.2rem;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.header-tagline {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 0.15rem;
    font-weight: 500;
}

/* Page intro */
.page-intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.intro-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 80, 128, 0.1), rgba(27, 122, 78, 0.1));
    border-radius: 12px;
    color: var(--color-primary-light);
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.page-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* Main */
.main-content {
    flex: 1;
    padding: 2rem 0 3.5rem;
}

/* Cards */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-card {
    padding: 0;
    overflow: hidden;
}

.form-card > .deadline-banner,
.form-card > .alert {
    margin: 1.5rem 1.5rem 0;
}

.form-card > .appeal-form {
    padding: 1.5rem;
}

/* Deadline */
.deadline-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
}

.deadline-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    color: var(--color-warning);
    box-shadow: var(--shadow-sm);
}

.deadline-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #92400e;
    margin-bottom: 0.1rem;
}

.deadline-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.deadline-timer {
    font-size: 0.82rem;
    font-weight: 700;
    color: #b45309;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid #fde68a;
}

.deadline-banner.is-urgent {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

.deadline-banner.is-urgent .deadline-icon-wrap { color: var(--color-error); }
.deadline-banner.is-urgent .deadline-label { color: #991b1b; }
.deadline-banner.is-urgent .deadline-timer {
    color: var(--color-error);
    border-color: #fecaca;
    background: rgba(255, 255, 255, 0.8);
}

/* Form sections */
.form-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 10px;
    letter-spacing: 0.02em;
}

.section-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.1rem;
}

.section-head p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label,
.form-group legend {
    display: block;
    font-weight: 600;
    font-size: 0.84rem;
    margin-bottom: 0.45rem;
    color: var(--color-text);
}

.required {
    color: var(--color-accent);
}

.input-wrap {
    position: relative;
}

.input-wrap select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

.input-wrap-matricule {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #f1f5f9;
    border: 1.5px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.input-wrap-matricule input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--color-text);
    background: #fafbfc;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:hover,
select:hover,
textarea:hover {
    border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-border-focus);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 80, 128, 0.1);
}

textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.65;
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.char-progress-wrap {
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.char-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-uni-green));
    border-radius: 99px;
    transition: width 0.2s ease, background 0.2s ease;
}

.char-progress-bar.is-valid { background: var(--color-success); }
.char-progress-bar.is-invalid { background: #fbbf24; }

.char-min-label { opacity: 0.8; }

fieldset {
    border: none;
    padding: 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem 1.1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    transition: all var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: all var(--transition);
    position: relative;
}

.checkbox-card.is-checked,
.checkbox-card:has(input:checked) {
    border-color: var(--color-primary-light);
    background: rgba(26, 80, 128, 0.04);
    box-shadow: 0 0 0 1px rgba(26, 80, 128, 0.1);
}

.checkbox-card.is-checked .checkbox-indicator,
.checkbox-card:has(input:checked) .checkbox-indicator {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-card.is-checked .checkbox-indicator::after,
.checkbox-card:has(input:checked) .checkbox-indicator::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-card:hover {
    border-color: #94a3b8;
}

.form-actions {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.form-disclaimer {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 420px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: -0.01em;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #e74c3c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--color-primary-light);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn-lg {
    padding: 0.9rem 2.25rem;
    font-size: 0.95rem;
    border-radius: 11px;
    min-width: 240px;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
}

.alert-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
}

.alert-success {
    background: var(--color-success-bg);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-success .alert-icon {
    background: var(--color-success);
    color: #fff;
}

.alert-error {
    background: var(--color-error-bg);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-error .alert-icon {
    background: var(--color-error);
    color: #fff;
}

/* Status pills */
.status-pill {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pill-closed {
    background: #fee2e2;
    color: #b91c1c;
    margin-bottom: 1rem;
}

/* Closed page */
.closed-card {
    text-align: center;
    max-width: 520px;
    margin: 2rem auto;
    padding: 3rem 2.5rem;
}

.closed-visual {
    margin-bottom: 1.25rem;
}

.closed-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 50%;
    color: var(--color-primary);
}

.closed-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.closed-message {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.closed-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-uni-green), var(--color-uni-gold));
    margin: 0 auto 1rem;
    border-radius: 99px;
}

.closed-hint {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-brand strong {
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-brand span {
    font-size: 0.78rem;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.78rem;
    opacity: 0.65;
}

/* Admin */
.admin-body {
    background: #e8edf4;
}

.admin-body .page-bg { display: none; }

.admin-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-mid));
    color: #fff;
    padding: 0.9rem 0;
    box-shadow: var(--shadow);
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.88rem;
}

.inline-form { display: inline; }

.admin-main { padding: 1.75rem 0 3rem; }

.login-card {
    max-width: 440px;
    margin: 3rem auto;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
}

.login-header-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(12, 45, 74, 0.08), rgba(27, 122, 78, 0.08));
    border-radius: 14px;
    color: var(--color-primary);
}

.admin-username {
    font-weight: 600;
    opacity: 0.9;
}

.card-header { margin-bottom: 1.5rem; }

.card-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.dashboard-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
}

.dashboard-subtitle {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.dashboard-deadline {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-warning);
}

.dashboard-deadline.is-expired { color: var(--color-error); }

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portal-toggle-form { display: flex; align-items: center; }

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0.85rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 26px;
    transition: background var(--transition);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider { background: var(--color-success); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(22px); }

.toggle-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}

.table-card {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.data-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.data-table tbody tr:hover { background: rgba(12, 45, 74, 0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

.empty-row {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2.5rem !important;
}

.badge {
    display: inline-block;
    background: rgba(12, 45, 74, 0.08);
    color: var(--color-primary);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0.1rem 0.15rem 0.1rem 0;
    white-space: nowrap;
}

.explanation-cell { max-width: 200px; }

.date-cell {
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

code {
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-size: 0.84em;
    font-weight: 600;
    color: var(--color-primary);
}

.error-card {
    text-align: center;
    max-width: 480px;
    margin: 3rem auto;
}

.error-card h2 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.error-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .logo-group {
        flex-direction: column;
    }

    .header-title { font-size: 1.05rem; }

    .page-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-card > .deadline-banner,
    .form-card > .alert {
        margin: 1rem 1rem 0;
    }

    .form-card > .appeal-form { padding: 1rem; }

    .deadline-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .deadline-icon-wrap { margin: 0 auto; }

    .deadline-timer { justify-self: center; }

    .dashboard-header { flex-direction: column; }

    .dashboard-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .export-buttons .btn { flex: 1; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .btn-lg { min-width: 100%; }
}

@media (max-width: 480px) {
    .admin-user {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}
