/* ════════════════════════════════════════════════════════════════
   Suvidha Centre — Mobile Web Application Styles
   Matches official brand guidelines & mobile UI screenshots
   ════════════════════════════════════════════════════════════════ */

:root {
    --brand-blue:       #0b63ce;
    --brand-blue-dark:  #084b9e;
    --brand-blue-light: #e0f2fe;
    --brand-pink:       #e11d48;
    --text-primary:     #1e293b;
    --text-secondary:   #64748b;
    --text-muted:       #94a3b8;
    --bg-page:          #f8fafc;
    --bg-card:          #ffffff;
    --border-card:      #e2e8f0;
    --border-input:     #d1d5db;
    --btn-blue:         #0d6efd;
    --btn-blue-hover:   #0b5ed7;
    --danger:           #dc2626;
    --success:          #16a34a;
    --radius-card:      18px;
    --radius-input:     10px;
}

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

html, body {
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ── App Viewport (Mobile container) ────────────────────────────── */
.app-viewport {
    max-width: 440px;
    margin: 0 auto;
    padding: 18px 16px 36px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Brand Header ───────────────────────────────────────────────── */
.brand-header {
    text-align: center;
    margin-bottom: 16px;
}

.brand-header.compact {
    margin-bottom: 12px;
}

.brand-logo {
    max-width: 220px;
    height: auto;
    display: inline-block;
    margin-bottom: 10px;
}

.brand-logo.logo-compact {
    max-width: 160px;
    margin-bottom: 6px;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin-top: 4px;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.dot-pink {
    width: 7px;
    height: 7px;
    background-color: var(--brand-pink);
    border-radius: 50%;
    display: inline-block;
}

/* ── Header details on Record page ──────────────────────────────── */
.location-heading {
    margin-top: 4px;
}

.location-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 2px;
}

.greeting-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.greeting-text strong {
    color: var(--text-primary);
}

.category-badge-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.category-pill {
    display: inline-block;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── UI Card ────────────────────────────────────────────────────── */
.ui-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 22px 18px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.step-pill {
    background: var(--brand-blue-light);
    color: #0284c7;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.timer-hint {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Form Fields ────────────────────────────────────────────────── */
.form-row {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.req {
    color: var(--danger);
    font-weight: 700;
}

.field-input {
    width: 100%;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-input);
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.field-input::placeholder {
    color: var(--text-muted);
}

.field-help {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.field-error {
    display: block;
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    font-weight: 500;
}

/* Phone input with +91 prefix addon */
.phone-input-group {
    display: flex;
    width: 100%;
}

.phone-prefix {
    background: #f1f5f9;
    border: 1px solid var(--border-input);
    border-right: none;
    border-radius: var(--radius-input) 0 0 var(--radius-input);
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.phone-input {
    border-radius: 0 var(--radius-input) var(--radius-input) 0;
}

/* Select wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.field-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-input);
    padding: 12px 38px 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    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='%230b63ce' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px;
}

.field-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 15.5px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary, .btn-submit {
    background: var(--btn-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.btn-primary:hover:not(:disabled), .btn-submit:hover:not(:disabled) {
    background: var(--btn-blue-hover);
}

.btn-record {
    background: #2563eb;
    color: #ffffff;
}

.btn-record:disabled {
    background: #93c5fd;
    color: #ffffff;
    opacity: 0.8;
}

.btn-stop {
    background: #dc2626;
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.btn-rec-icon {
    font-size: 13px;
}

/* ── Step 2: Video Box ──────────────────────────────────────────── */
.video-box {
    background: #0d1527;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.camera-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-timer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0284c7;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.recording-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
    z-index: 5;
}

.rec-dot {
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: blink 1s step-start infinite;
}

.video-overlay-banner {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(13, 21, 39, 0.85);
    backdrop-filter: blur(4px);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    z-index: 5;
}

/* ── Status / Alert Box ─────────────────────────────────────────── */
.status-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    margin: 14px 0;
}

.status-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

.status-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.status-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.status-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* ── Record Controls ────────────────────────────────────────────── */
.record-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Upload Progress ────────────────────────────────────────────── */
.upload-progress-box {
    margin-top: 12px;
}

.progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--btn-blue);
    border-radius: 9999px;
    transition: width 0.25s ease;
}

.progress-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ── Back Link ──────────────────────────────────────────────────── */
.back-link-wrap {
    text-align: center;
    margin-top: 16px;
}

.back-link {
    color: var(--brand-blue);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}

.back-link:hover {
    text-decoration: underline;
}

/* ── Thank You Screen ───────────────────────────────────────────── */
.thank-you-card {
    text-align: center;
    padding: 36px 20px;
}

.thank-you-badge {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.thank-you-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.thank-you-lead {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.thank-you-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #0369a1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    margin-bottom: 24px;
}

.notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.app-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 24px;
}

.app-footer p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ── Helpers & Animations ───────────────────────────────────────── */
.hidden {
    display: none !important;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.02); }
}

/* ════════════════════════════════════════════════════════════════
   Admin Dashboard Styles — Fully Responsive (Mobile, Tablet, Desktop)
   ════════════════════════════════════════════════════════════════ */
.dashboard-viewport {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────────── */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 18px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
    gap: 16px;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-logo {
    max-width: 140px;
    height: auto;
    display: block;
}

.dash-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0;
    line-height: 1.2;
}

.dash-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 3px 0 0;
}

.dash-user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ist-time-badge {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.ist-time-badge strong {
    color: #78350f;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dash-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-pill {
    background: #f1f5f9;
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12.5px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
}

.btn-dash-link, .btn-dash-logout {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-dash-link {
    background: var(--brand-blue-light);
    color: #0369a1;
}

.btn-dash-link:hover {
    background: #bae6fd;
}

.btn-dash-logout {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-dash-logout:hover {
    background: #fecaca;
}

/* ── Stats Grid ───────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.bg-blue-subtle   { background: #e0f2fe; }
.bg-green-subtle  { background: #dcfce7; }
.bg-purple-subtle { background: #f3e8ff; }
.bg-pink-subtle   { background: #ffe4e6; }

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 3px;
}

/* ── Search & Filters ─────────────────────────────────────────── */
.dash-filter-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
    flex-wrap: wrap;
    align-items: center;
}

.filter-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.dash-search-input {
    width: 100%;
    border: 1px solid var(--border-input);
    border-radius: 10px;
    padding: 10px 14px 10px 38px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-search-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.1);
}

.filter-select-box {
    min-width: 220px;
}

.dash-select {
    width: 100%;
    border: 1px solid var(--border-input);
    border-radius: 10px;
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b63ce' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* ── Table Card ───────────────────────────────────────────────── */
.dash-table-card {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.dash-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-card);
    white-space: nowrap;
}

.dash-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dash-table tbody tr:hover {
    background: #f8fafc;
}

.id-tag {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 12px;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}

.citizen-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.citizen-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.citizen-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.citizen-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.phone-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

.location-badge {
    background: #f1f5f9;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-block;
    white-space: nowrap;
}

.date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-main {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    white-space: nowrap;
}

.date-time {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.ist-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.video-action-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-watch-video {
    background: var(--btn-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-watch-video:hover {
    background: var(--btn-blue-hover);
}

.btn-download-video {
    background: #f1f5f9;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 12.5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-download-video:hover {
    background: #e2e8f0;
}

.text-no-video {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-delete {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0.6;
}

.btn-delete:hover {
    background: #fee2e2;
    border-color: #fecaca;
    opacity: 1;
}

/* ── Mobile Feedback Cards (< 768px) ──────────────────────────── */
.mobile-feedback-cards {
    display: none;
}

.feedback-card-mobile {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.fcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fcard-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fcard-citizen {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.fcard-time {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.fcard-time strong {
    color: var(--text-primary);
}

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

.btn-mobile-video {
    flex: 1;
    padding: 10px 14px;
    font-size: 13.5px;
    border-radius: 10px;
}

.btn-download-video-mobile {
    background: #f1f5f9;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Empty State ──────────────────────────────────────────────── */
.empty-state {
    padding: 64px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 13.5px;
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto;
}

/* ── Modal (Responsive Video Viewer) ──────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-card);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-blue);
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    line-height: 1;
}

.modal-body {
    background: #000000;
    padding: 0;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-footer {
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
    border-top: 1px solid var(--border-card);
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════════ */

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .dashboard-viewport {
        padding: 14px 12px 36px;
    }

    .dash-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }

    .dash-brand {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }

    .dash-logo {
        max-width: 150px;
        margin: 0 auto;
    }

    .dash-user-bar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .ist-time-badge {
        justify-content: center;
        width: 100%;
        font-size: 11.5px;
    }

    .dash-btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .admin-pill {
        grid-column: span 2;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 14px;
        gap: 10px;
    }

    .stat-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .dash-filter-card {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .filter-search-box {
        min-width: 100%;
    }

    .filter-select-box {
        width: 100%;
    }

    /* Switch from Table to Card view on Mobile */
    .desktop-table-wrap {
        display: none !important;
    }

    .mobile-feedback-cards {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        padding: 14px 12px;
    }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .stat-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


