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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

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



.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

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

.rating-group {
    display: flex;
    gap: 10px;
}

.rating-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.rating-option input {
    width: auto;
    margin-right: 5px;
}




.main-nav {
    background: #024b6e;  /* requested bg */
    padding: 10px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.nav-logo {
    height: 80px;
    width: 248px;
    display: block;
}

.nav-title {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0 0 0 30px;
    padding: 0;
}

.nav-links a {
    color: #e5f4ff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}

.nav-right {
    margin-left: auto;
}

.nav-logout {
    color: #ffb72b;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;

}

.nav-logout:hover {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-links {
        margin-left: 0;
        flex-wrap: wrap;
    }
}




.likert-group {
    flex-direction: column;
    align-items: flex-start;
}

.likert-option {
    width: 100%;
}

.likert-label {
    font-size: 13px;
}


/* staff dashboard */


/* Layout wrapper around .container for dashboards */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

/* Bento grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Bento cards */
.bento-card {
    border-radius: 18px;
    padding: 20px 22px;
    background: #ffffff;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.8);
}

/* Main welcome card */
.bento-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.bento-header h1 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #024b6e;
}

.bento-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Small pills inside main card */
.bento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bento-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 14px;
}

.pill-label {
    color: #6b7280;
}

.pill-value {
    font-weight: 600;
    color: #024b6e;
}

/* Forms card */
.bento-forms .bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
}

.bento-forms h2 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.bento-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* Forms list rows */
.forms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 16px;
    padding: 14px 14px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    align-items: center;
}

.form-row-completed {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.form-main h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #024b6e;
}

.form-meta {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.form-deadline {
    margin: 4px 0 0;
    font-size: 13px;
    color: #4b5563;
}

.form-status {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Status pills and actions */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-done {
    background: #22c55e1a;
    color: #15803d;
    border: 1px solid #22c55e66;
}

.status-pending {
    background: #f9731615;
    color: #c2410c;
    border: 1px solid #fb923c80;
}

.status-note {
    font-size: 11px;
    color: #6b7280;
}

.btn-ghost {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #0f172a;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-ghost:hover {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

/* Empty state */
.empty-state {
    padding: 18px 16px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    text-align: left;
}

.empty-state h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #111827;
}

.empty-state p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}





 /* Admin bento grid  */


.dashboard-grid-admin {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-auto-rows: minmax(0, auto);
    gap: 20px;
}




.bento-header-admin h1 {
    margin: 0 0 8px;
    font-size: 22px;
    color: white;
}
.dashboard-grid-admin .bento-wide {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .dashboard-grid-admin {
        grid-template-columns: 1fr;
    }
}

/* Bento base card */
.bento-card {
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: #ffffff;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

/* Brand accent card (uses 024b6e and ffb72b) */
.brand-accent {
    background: linear-gradient(135deg, #024b6e, #046c9b);
    color: #f9fafb;
    box-shadow:
        0 16px 40px rgba(3, 30, 48, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.4);
}

.brand-accent .bento-header p {
    color: #dbeafe;
}

/* Headers and text */
.bento-header h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.bento-header p {
    margin: 0;
    font-size: 14px;
}

.bento-card-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #0f172a;
}

.bento-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Stats inside overview card */
.bento-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.bento-stat {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.38);
    min-width: 130px;
}

.bento-stat .stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.bento-stat .stat-value {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
    color: #ffb72b;
}

/* Quick actions */
.bento-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* Buttons */
.btn-primary-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ffb72b, #f59e0b);
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary-solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.45);
    opacity: 0.97;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #024b6e;
    color: #024b6e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: #ffffff;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-outline:hover {
    background: #024b6e;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(2, 75, 110, 0.35);
}

/* Recent forms table */
.forms-table-wrapper {
    margin-top: 12px;
    overflow-x: auto;
}

.forms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.forms-table th,
.forms-table td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.forms-table th {
    font-weight: 600;
    background: #f9fafb;
    color: #374151;
}

.forms-table tr:hover td {
    background: #f3f4f6;
}

/* Status pills (admin) */
.status-pill-admin {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-active {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #4ade80;
}

.status-inactive {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.status-closed {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* View button in table */
.btn-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #024b6e;
    background: #ffffff;
    color: #024b6e;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-table:hover {
    background: #024b6e;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(2, 75, 110, 0.3);
}

/* Empty state */
.empty-state {
    margin-top: 10px;
    padding: 16px 14px 18px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
}

.empty-state h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #111827;
}

.empty-state p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
}



/* Create Form page (scoped) */
.create-form-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

.create-form-header h1 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #0f172a;
}

.create-form-header p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.create-form-alert-success {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    background: #ecfdf3;
    border: 1px solid #4ade80;
    color: #166534;
    font-size: 13px;
}

.create-form-card {
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: #ffffff;
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

/* Grid inside card */
.create-form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.create-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.create-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.create-form-group input,
.create-form-group select {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.create-form-group input:focus,
.create-form-group select:focus {
    border-color: #024b6e;
    box-shadow: 0 0 0 2px rgba(2, 75, 110, 0.18);
    background: #ffffff;
}

.create-form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.create-form-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.create-form-btn-primary {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ffb72b, #f59e0b);
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(146, 64, 14, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.create-form-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.45);
    opacity: 0.97;
}

.create-form-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 8px 16px rgba(146, 64, 14, 0.4);
}



/* analysis */


.responses-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

.responses-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    gap: 20px;
    grid-auto-rows: minmax(0, auto);
}

.responses-card-individual,
.responses-card-analysis {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .responses-grid {
        grid-template-columns: 1fr;
    }
}

/* Base card */
.responses-card {
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: #ffffff;
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

.responses-card-header h1,
.responses-card-header h2 {
    margin: 0 0 4px;
    color: #0f172a;
}

.responses-card-header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Select form */
.responses-select-form {
    margin-top: 10px;
}

.responses-select-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.responses-select-group select {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.responses-select-group select:focus {
    border-color: #024b6e;
    box-shadow: 0 0 0 2px rgba(2, 75, 110, 0.18);
}

/* Summary */
.responses-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.responses-summary-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.summary-value {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.summary-accent {
    color: #024b6e;
}

/* Analysis */
.responses-analysis-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.responses-analysis-item {
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.responses-analysis-item h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #0f172a;
}

.responses-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: 18px;
}

@media (max-width: 700px) {
    .responses-analysis-grid {
        grid-template-columns: 1fr;
    }
}

.analysis-label {
    font-size: 12px;
    color: #6b7280;
}

.analysis-average {
    font-size: 22px;
    font-weight: 600;
    color: #024b6e;
}

.analysis-count {
    margin-top: 8px;
    font-size: 14px;
}

.analysis-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.analysis-bar-label {
    width: 190px;
    font-size: 12px;
    color: #4b5563;
}

.analysis-bar-track {
    flex: 1;
    height: 18px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.analysis-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb72b, #ffb72b);
}

.analysis-bar-value {
    width: 80px;
    font-size: 12px;
    text-align: right;
    color: #374151;
}

/* Individual responses */
.responses-toggle-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #024b6e;
    background: #ffffff;
    color: #024b6e;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.responses-toggle-btn:hover {
    background: #024b6e;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(2, 75, 110, 0.3);
}

.responses-individual-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.responses-item {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    overflow: hidden;
}

.responses-item-header {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f3f4f6;
}

.responses-item-meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
}

.responses-item-toggle {
    font-size: 12px;
    color: #6b7280;
}

.responses-item-body {
    display: none;
    padding: 10px 14px 12px;
    background: #ffffff;
}

.responses-item-body-open {
    display: block;
}

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

.responses-table th,
.responses-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.responses-table th {
    font-weight: 600;
    background: #f9fafb;
    color: #374151;
}

.responses-empty {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.responses-error {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
}


/* Super Admin dashboard (scoped) */
.sa-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

.sa-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 20px;
    grid-auto-rows: minmax(0, auto);
}

.sa-card-table {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .sa-grid {
        grid-template-columns: 1fr;
    }
}

/* Base card */
.sa-card {
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: #ffffff;
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

/* Main overview card with brand accent */
.sa-card-main {
    background: linear-gradient(135deg, #024b6e, #046c9b);
    color: #f9fafb;
    box-shadow:
        0 16px 40px rgba(3, 30, 48, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.4);
}

.sa-main-header h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.sa-main-header p {
    margin: 0;
    font-size: 13px;
    color: #dbeafe;
}

.sa-main-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sa-main-stat {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
    min-width: 130px;
}

.sa-main-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.sa-main-value {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
    color: #ffb72b;
}

/* Quick actions card */
.sa-card-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #0f172a;
}

.sa-card-header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.sa-card-actions .sa-card-header {
    margin-bottom: 10px;
}

.sa-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.sa-actions-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 14px;
}

/* Buttons (scoped) */
.sa-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ffb72b, #f59e0b);
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.45);
    opacity: 0.97;
}

.sa-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #024b6e;
    background: #ffffff;
    color: #024b6e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sa-btn-outline:hover {
    background: #024b6e;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(2, 75, 110, 0.35);
}

/* Small stats card */
.sa-card-stats .sa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.sa-stat-pill {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.sa-stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.sa-stat-value {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #024b6e;
}

/* Recent users table */
.sa-table-wrap {
    margin-top: 10px;
    overflow-x: auto;
}

.sa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sa-table th,
.sa-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.sa-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.sa-table tr:hover td {
    background: #f3f4f6;
}

/* Role pills */
.sa-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.sa-role-super_admin {
    background: #e0f2fe;
    color: #024b6e;
    border: 1px solid #7dd3fc;
}

.sa-role-admin {
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #facc15;
}

.sa-role-staff {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #4ade80;
}

.sa-empty-text {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}



/* Manage Questionnaires (scoped) */
.mq-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

.mq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .mq-grid {
        grid-template-columns: 1fr;
    }
}

.mq-card {
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: #ffffff;
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

/* Header + alerts */
.mq-header h1 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #0f172a;
}

.mq-header p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
}

.mq-alert-success,
.mq-alert-error {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.mq-alert-success {
    background: #ecfdf3;
    border: 1px solid #4ade80;
    color: #166534;
}

.mq-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Form */
.mq-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mq-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.mq-form-group input[type="text"] {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.mq-form-group input[type="text"]:focus {
    border-color: #024b6e;
    box-shadow: 0 0 0 2px rgba(2, 75, 110, 0.18);
}

.mq-form-actions {
    display: flex;
    justify-content: flex-end;
}

/* Question items */
.mq-question-item {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 12px 14px;
    background: #f9fafb;
    margin-bottom: 10px;
    animation: mq-slideIn 0.25s ease-out;
}

.mq-question-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mq-question-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mq-question-input,
.mq-question-select {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.mq-question-input:focus,
.mq-question-select:focus {
    border-color: #024b6e;
    box-shadow: 0 0 0 2px rgba(2, 75, 110, 0.18);
}

/* Buttons (scoped) */
.mq-btn-primary,
.mq-btn-secondary,
.mq-btn-danger,
.mq-btn-table {
    font-size: 14px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.mq-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.mq-btn-primary {
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, #ffb72b, #f59e0b);
    color: #111827;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(146, 64, 14, 0.35);
}

.mq-btn-primary:hover {
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.45);
}

.mq-btn-secondary {
    padding: 7px 14px;
    border: 1px solid #024b6e;
    background: #ffffff;
    color: #024b6e;
    font-weight: 500;
}

.mq-btn-secondary:hover {
    background: #024b6e;
    color: #ffffff;
}

.mq-btn-danger {
    padding: 7px 14px;
    border: 1px solid #dc2626;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 500;
}

.mq-btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
}

.mq-btn-table {
    padding: 6px 12px;
    border: 1px solid #024b6e;
    background: #ffffff;
    color: #024b6e;
    font-size: 12px;
    font-weight: 500;
}

.mq-btn-table:hover {
    background: #024b6e;
    color: #ffffff;
}

/* Existing list */
.mq-card-list .mq-card-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #0f172a;
}

.mq-card-list .mq-card-header p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
}

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

.mq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mq-table th,
.mq-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.mq-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.mq-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mq-empty-text {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Modal */
.mq-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
}

.mq-modal-content {
    max-width: 800px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 24px 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.mq-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: #dc2626;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

.mq-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 14px;
}

.mq-modal-table th,
.mq-modal-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.mq-modal-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.mq-modal-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
}

/* Tags */
.mq-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.mq-tag-rating {
    background: #e0f2fe;
    color: #024b6e;
    border: 1px solid #7dd3fc;
}

.mq-tag-text {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #4ade80;
}

/* Animations */
@keyframes mq-slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Manage Users (scoped) */
.mu-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

.mu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .mu-grid {
        grid-template-columns: 1fr;
    }
}

.mu-card {
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: #ffffff;
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

/* Header & alert */
.mu-header h1 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #0f172a;
}

.mu-header p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
}

.mu-alert-success {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #ecfdf3;
    border: 1px solid #4ade80;
    color: #166534;
    font-size: 13px;
}

/* Form */
.mu-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mu-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.mu-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.mu-group input,
.mu-group select {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.mu-group input:focus,
.mu-group select:focus {
    border-color: #024b6e;
    box-shadow: 0 0 0 2px rgba(2, 75, 110, 0.18);
}

.mu-actions {
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.mu-btn-primary,
.mu-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.mu-btn-primary {
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, #ffb72b, #f59e0b);
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(146, 64, 14, 0.35);
}

.mu-btn-primary:hover {
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.45);
}

.mu-btn-danger {
    padding: 7px 14px;
    border: 1px solid #dc2626;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
}

.mu-btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
}

.mu-btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* List card */
.mu-card-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #0f172a;
}

.mu-card-header p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
}

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

.mu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mu-table th,
.mu-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.mu-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.mu-table tr:hover td {
    background: #f3f4f6;
}

.mu-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mu-empty-text {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Role pills */
.mu-role {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.mu-role-super_admin {
    background: #e0f2fe;
    color: #024b6e;
    border: 1px solid #7dd3fc;
}

.mu-role-admin {
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #facc15;
}

.mu-role-staff {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #4ade80;
}




/* Submit Feedback page (scoped) */
.sf-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

.sf-page h1 {
    margin-bottom: 4px;
    font-size: 22px;
    color: #0f172a;
}

.sf-page h3 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.sf-page-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

/* Card */
.sf-card {
    margin-top: 18px;
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: #ffffff;
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

.sf-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Question block */
.sf-question {
    padding: 12px 0 14px;
    border-bottom: 1px solid #e5e7eb;
}

.sf-question:last-of-type {
    border-bottom: none;
}

.sf-question-text {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
}

/* Likert layout */
.sf-likert-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 6px 18px;
    margin-top: 4px;
}

.sf-likert-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.sf-likert-option:hover {
    background: #f3f4f6;
}

.sf-likert-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.sf-likert-label {
    font-size: 13px;
    color: #374151;
}

/* Textarea */
.sf-textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    resize: vertical;
    min-height: 70px;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

.sf-textarea:focus {
    border-color: #024b6e;
    box-shadow: 0 0 0 2px rgba(2, 75, 110, 0.18);
}

/* Submit button */
.sf-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.sf-btn-primary {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ffb72b, #f59e0b);
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(146, 64, 14, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sf-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(146, 64, 14, 0.45);
    opacity: 0.97;
}

.sf-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 8px 16px rgba(146, 64, 14, 0.40);
}




/* --- Responses filter bar (rf-*) --- */

.rf-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font-size: 13px;
}

.rf-filter-label {
    font-weight: 500;
    color: #024b6e;
}

.rf-filter-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 75, 110, 0.06);
    border: 1px solid rgba(2, 75, 110, 0.12);
}

.rf-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #024b6e;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rf-filter-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffb72b;
    box-shadow: 0 0 0 2px rgba(255, 183, 43, 0.35);
}

.rf-filter-select {
    border: none;
    background: transparent;
    font-size: 13px;
    color: #024b6e;
    padding: 2px 4px 2px 0;
    outline: none;
    cursor: pointer;
}

.rf-filter-select option {
    color: #111827;
}

/* Small screens: stack label + select */
@media (max-width: 640px) {
    .rf-filter-form {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

