@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

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

:root {
    --primary: ##1F91DC;
    --primary-light: #1F91DC;
    --accent: #1F91DC;
    --danger: #e53935;
    --success: #43a047;
    --warning: #ff9800;
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-light: #263449;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== TELAS ===== */
.screen {
    display: none;
    animation: fadeIn 0.35s ease;
    min-height: 100vh;
}
.screen.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 8px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
}

.header-left {
    flex-shrink: 0;
}

.header-logo {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background: rgba(255,255,255,0.1);
    padding: 4px;
}

.header-logo:hover {
    transform: scale(1.08);
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.header-center .subtitle {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 0px;
    color: rgba(255,255,255,0.8);
}

.header-right {
    flex-shrink: 0;
    min-width: 40px;
}

.badge-tv {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* ===== LOGO NAS TELAS DE AUTENTICAÇÃO ===== */
.auth-logo {
    text-align: center;
    margin-bottom: 12px;
}

.auth-logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    padding: 6px;
}

/* ===== AUTH ===== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 68px);
    padding: 16px 20px;
}

.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 28px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: 0 auto;
}

.auth-box.wide {
    max-width: 560px;
}

.auth-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.auth-box h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    margin-bottom: 4px;
}

.auth-sub {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-footer {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.admin-link {
    margin-top: 14px;
    font-size: 13px;
}

.admin-link a {
    color: var(--text-muted);
    text-decoration: none;
}

.admin-link a:hover {
    color: var(--accent);
}

/* ===== FOTO DE PERFIL ===== */
.foto-upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.foto-upload-area:hover {
    border-color: var(--accent);
}

.foto-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-placeholder {
    font-size: 48px;
    opacity: 0.5;
}

.foto-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dash-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 28px;
}

/* ===== FORMULÁRIOS ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 24px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.form-group label .required {
    color: var(--danger);
    margin-left: 3px;
}

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

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.25s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.char-counter {
    display: block;
    text-align: right;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.radio-card {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.radio-card:hover {
    border-color: var(--primary-light);
    background: rgba(57, 73, 171, 0.08);
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card .icon {
    font-size: 26px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    flex-shrink: 0;
}

.radio-card .info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.radio-card .info p {
    font-size: 12px;
    color: var(--text-muted);
}

.radio-card.selected {
    border-color: var(--accent);
    background: rgba(0, 188, 212, 0.08);
}

.radio-card.selected .icon {
    background: var(--accent);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(229, 57, 53, 0.04);
    border: 1px solid rgba(229, 57, 53, 0.15);
    border-radius: 10px;
    padding: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--danger);
}

.checkbox-group label {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-group label strong {
    color: var(--danger);
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 35, 126, 0.45);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== DASHBOARD ===== */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.dash-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 28px;
}

.dash-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dash-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
}

.dash-info p {
    font-size: 12px;
    opacity: 0.75;
    margin: 0;
}

.dash-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-actions .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 12px;
}

.dashboard-content {
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.dash-section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-bottom: 14px;
}

.dash-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.dash-materias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* ===== MATÉRIA CARD ===== */
.materia-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
}

.materia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-light);
}

.materia-card .thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.materia-card .thumb video,
.materia-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.materia-card .thumb .tipo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.materia-card .thumb .status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.status-pendente {
    background: var(--warning);
    color: #000;
}

.status-aprovada {
    background: var(--success);
    color: white;
}

.status-reprovada {
    background: var(--danger);
    color: white;
}

.status-parcial {
    background: var(--accent);
    color: #000;
}

.materia-card .thumb .duracao {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
}

.materia-card .info {
    padding: 12px 14px;
}

.materia-card .info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.materia-card .info .meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.materia-card .info .nota {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

.nota-baixa {
    color: var(--danger);
}

.nota-media {
    color: var(--warning);
}

.nota-alta {
    color: var(--success);
}

.materia-card .actions {
    display: flex;
    gap: 6px;
    padding: 0 14px 14px;
}

.materia-card .actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* ===== DESCRIÇÃO DA MATÉRIA ===== */
.descricao-materia {
    background: var(--bg);
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    border-left: 3px solid var(--accent);
}

.descricao-materia p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.descricao-materia .btn {
    padding: 4px 12px;
    font-size: 11px;
    width: auto;
}

/* ===== GRAVAÇÃO ===== */
.recording-screen {
    position: relative;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.video-area {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    min-height: 0;
}

.canvas-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewCanvas {
    max-width: 100%;
    max-height: 58vh;
    width: auto;
    height: auto;
    display: block;
    background: #000;
}

.rec-status {
    position: absolute;
    top: 14px;
    left: 14px;
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 20;
}

.rec-status.active {
    display: flex;
}

.rec-dot {
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.rec-time {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: white;
    min-width: 50px;
}

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

.controls-bar {
    background: var(--surface);
    padding: 12px 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.controls-bar .btn {
    width: auto;
    min-width: 100px;
    padding: 10px 18px;
    font-size: 13px;
}

.btn-record {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

.btn-record.recording {
    animation: pulse 1.2s infinite;
}

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

.rec-meta-bar {
    background: var(--surface);
    padding: 6px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    gap: 10px;
}

/* ===== PREVIEW ===== */
.preview-screen .video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 20px;
}

.preview-screen video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

.upload-progress {
    max-width: 600px;
    margin: 14px auto;
    padding: 0 20px;
}

.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    width: 0%;
    transition: width 0.3s;
    border-radius: 3px;
}

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

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border);
}

.modal-content video {
    width: 100%;
    background: #000;
}

.modal-info {
    padding: 20px;
}

.modal-info h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ===== NOTA SLIDER ===== */
.nota-slider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0;
}

.nota-display {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.nota-legenda {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 8px;
}

/* ===== CHAT ===== */
.chat-msg {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.4;
}

.chat-msg.admin {
    background: var(--primary-light);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-msg.reporter {
    background: var(--surface-light);
    margin-left: auto;
    border-bottom-right-radius: 4px;
    text-align: right;
}

.chat-msg .msg-time {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 4px;
    display: block;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    font-size: 14px;
    opacity: 0;
    transition: all 0.35s;
    pointer-events: none;
    text-align: center;
    max-width: 90vw;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

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

.empty-state .btn {
    max-width: 200px;
    margin-top: 14px;
}

/* ===== MODAL DE EDIÇÃO ===== */
#modalEditDesc .form-group {
    margin-bottom: 14px;
}

#modalEditDesc textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    font-family: 'Roboto', sans-serif;
    resize: vertical;
}

#modalEditDesc textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ===== MODAL CÂMERA ===== */
#modalCamera video {
    width: 100%;
    background: #000;
    border-radius: 8px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .app-header {
        padding: 6px 14px;
    }
    
    .header-logo {
        height: 38px;
        width: 38px;
    }
    
    .header-center h1 {
        font-size: 18px;
    }
    
    .header-center .subtitle {
        font-size: 10px;
    }
    
    .auth-container {
        min-height: calc(100vh - 60px);
        padding: 14px 16px;
    }
    
    .auth-box {
        padding: 20px 18px;
    }
    
    .auth-logo-img {
        height: 50px;
        width: 50px;
    }
    
    .auth-box h2 {
        font-size: 20px;
    }
    
    .dashboard-header {
        padding: 10px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .dash-avatar {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    
    .dash-info h2 {
        font-size: 16px;
    }
    
    .dash-actions {
        width: 100%;
    }
    
    .dash-actions .btn {
        flex: 1;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .dashboard-content {
        padding: 12px 16px;
    }
    
    .form-container {
        padding: 12px 16px;
    }
    
    .preview-screen .video-wrapper {
        padding: 8px 12px;
    }
    
    .foto-preview {
        width: 100px;
        height: 100px;
    }
    
    .foto-placeholder {
        font-size: 36px;
    }
    
    .dash-materias {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 4px 10px;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .header-logo {
        height: 32px;
        width: 32px;
        padding: 2px;
    }
    
    .header-center h1 {
        font-size: 15px;
    }
    
    .header-center .subtitle {
        font-size: 9px;
    }
    
    .badge-tv {
        font-size: 8px;
        padding: 1px 6px;
    }
    
    .auth-container {
        min-height: calc(100vh - 52px);
        padding: 10px 12px;
    }
    
    .auth-box {
        padding: 16px 14px;
    }
    
    .auth-logo-img {
        height: 40px;
        width: 40px;
        padding: 4px;
    }
    
    .auth-icon {
        font-size: 32px;
    }
    
    .auth-box h2 {
        font-size: 18px;
    }
    
    .auth-sub {
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .dash-avatar {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .dash-info h2 {
        font-size: 14px;
    }
    
    .dash-info p {
        font-size: 10px;
    }
    
    .dash-actions .btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .dashboard-content {
        padding: 10px 12px;
    }
    
    .dash-section h3 {
        font-size: 16px;
    }
    
    .filter-btn {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .controls-bar .btn {
        min-width: 80px;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .materia-card .info h4 {
        font-size: 13px;
    }
    
    .materia-card .actions .btn {
        font-size: 10px;
        padding: 6px;
    }
    
    .foto-preview {
        width: 80px;
        height: 80px;
    }
    
    .foto-placeholder {
        font-size: 28px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-info {
        padding: 14px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}