/* ==========================================
   ADICIONAR LOCAL - Mapa Memorial
   Estilos dedicados para formulário de adição
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #2F6C84;
    --primary-dark: #1e4a5a;
    --accent-color: #C44C2D;
    --accent-dark: #A03A25;
    --secondary-color: #E6D2B5;
    --secondary-dark: #d4c0a3;
    --background-color: #EAE7E2;
    --text-color: #2F6C84;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --success-dark: #218838;
    --error-color: #dc3545;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* ===== Overlay de Loading para Busca de Localização ===== */
.location-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(47, 108, 132, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.location-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.location-loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.location-loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: submitSpin 1s linear infinite;
}

.location-loading-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.location-loading-text {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===== Overlay de Loading para Envio ===== */
.submit-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(47, 108, 132, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.submit-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.submit-loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.submit-loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: submitSpin 1s linear infinite;
}

@keyframes submitSpin {
    to { transform: rotate(360deg); }
}

.submit-loading-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.submit-loading-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.5;
}

.submit-loading-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.submit-loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E6D2B5, #ffffff);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

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

/* ===== Reset e Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* ===== Container Principal ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
}

/* ===== Tipografia ===== */
h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ===== Formulário ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}

label .required {
    color: var(--accent-color);
    margin-left: 2px;
}

label .field-type {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    margin-left: 4px;
    font-style: italic;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-color);
}

input:disabled,
textarea:disabled,
select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #ddd;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 108, 132, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #adb5bd;
}

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

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232F6C84' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Contador de Caracteres ===== */
.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 6px;
    transition: color 0.2s ease;
}

.char-limit {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* ===== Input com erro ===== */
input.input-error,
textarea.input-error,
select.input-error {
    border-color: var(--error-color);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== Seletor de Tipo de Data ===== */
.date-type-selector {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.date-type-option {
    flex: 1;
    cursor: pointer;
}

.date-type-option input[type="radio"] {
    display: none;
}

.date-type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.date-type-option input[type="radio"]:checked + .date-type-label {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(47, 108, 132, 0.15);
}

.date-type-label:hover {
    background: white;
}

/* ===== Campos de Data Flexíveis ===== */
.date-fields-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    gap: 12px;
    margin-top: 8px;
}

.date-field {
    display: flex;
    flex-direction: column;
}

.date-field label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.date-field input,
.date-field select {
    padding: 10px 12px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.date-field input:focus,
.date-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 108, 132, 0.1);
}

/* ===== Seção de Período ===== */
.period-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e8eaed;
}

.period-section:last-of-type {
    margin-bottom: 0;
}

.period-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Responsivo para campos de data */
@media (max-width: 480px) {
    .date-type-selector {
        flex-direction: column;
    }
    
    .date-fields-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .date-field:first-child {
        grid-column: 1 / -1;
    }
}

/* ===== Link Externo ===== */
.external-link-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.external-link-container input {
    padding: 14px 18px;
    border: 2px solid #E6D2B5;
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
}

.external-link-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(47, 108, 132, 0.1);
}

.external-link-container input::placeholder {
    color: #aaa;
}

/* ===== Coordenadas ===== */
.coordinates-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ===== Mapa de Pré-visualização de Coordenadas ===== */
.coords-preview-container {
    margin-top: 16px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(47, 108, 132, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coords-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.coords-preview-close {
    flex: none !important;
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.coords-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.coords-preview-map {
    height: 250px;
    width: 100%;
    background: #e0e0e0;
}

.coords-preview-info {
    padding: 10px 14px;
    background: #f8f9fa;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coords-preview-info::before {
    content: '💡';
}

/* Estilo do marcador no mapa de preview */
.preview-marker {
    background: none;
    border: none;
}

.preview-marker-inner {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(47, 108, 132, 0.4);
    border: 3px solid white;
    animation: markerBounce 0.5s ease;
}

.preview-marker-inner span {
    transform: rotate(45deg);
    font-size: 16px;
}

@keyframes markerBounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-8px); }
}

@keyframes markerBlink {
    0%, 100% { opacity: 1; transform: rotate(-45deg) scale(1); }
    50% { opacity: 0.7; transform: rotate(-45deg) scale(1.15); }
}

.preview-marker.marker-blink .preview-marker-inner {
    animation: markerBlink 0.4s ease 2;
}

/* ===== Fluxo CEP / Endereço / Mapa ===== */
.location-flow-section label { display: block; margin-bottom: 6px; }
.cep-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cep-row #cep { flex: 1; min-width: 140px; }
.cep-loading { color: var(--primary-color); font-size: 13px; }
.cep-error { color: var(--error-color); font-size: 13px; }
.address-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.form-group-inline { flex: 0 0 auto; }
.form-group-inline label { display: block; margin-bottom: 4px; font-size: 13px; }
.form-group-inline input { width: 100px; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox-inline input { width: auto; }
.address-summary { margin-top: 10px; padding: 10px; background: #f0f7fa; border-radius: 8px; font-size: 13px; color: var(--text-color); }
.location-map-section { margin-top: 20px; border: 2px solid var(--primary-color); border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 4px 12px rgba(47, 108, 132, 0.15); }
.location-map-section .coords-preview-map { height: 280px; }
.location-confirm-block { padding: 16px; background: #f8f9fa; border-top: 1px solid #e8eaed; }
.location-confirm-question { margin: 0 0 12px; font-weight: 600; color: var(--text-color); }
.location-confirm-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-confirm-location { background: linear-gradient(135deg, var(--success-color), var(--success-dark)); color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-confirm-location:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35); }
.btn-adjust-location { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-adjust-location:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(47, 108, 132, 0.35); }
.location-adjust-hint { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }

/* ===== Áudio (depoimento) ===== */
.audio-upload-area { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.audio-upload-area .btn-secondary { flex: 0 0 auto; }
.audio-filename { font-size: 13px; color: var(--text-muted); }
.audio-preview { margin-top: 10px; }
.audio-preview audio { width: 100%; max-width: 400px; }

.input-readonly { background: #f0f4f8; color: var(--text-color); cursor: default; }

/* Campo Rua (readonly, preenchido pelo CEP): cinza e não clicável */
.input-street-readonly,
#street[readonly] {
    background: #e9ecef !important;
    color: #495057;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #dee2e6;
}

/* ===== Botões ===== */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 108, 132, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--secondary-dark);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* ===== Alertas Legados (display: none por padrão) ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: none;
}

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

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

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 450px;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--primary-color);
}

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

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

.toast.toast-info {
    border-left-color: var(--primary-color);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #495057;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 0 14px;
    animation: toastProgress 5s linear forwards;
}

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

.toast.toast-error .toast-progress {
    background: var(--error-color);
}

/* Toast de Notificação em Tempo Real (mais destacado) */
.toast.toast-realtime {
    border-left-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.98));
    animation: toastSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), toastPulse 0.6s ease-in-out;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.toast.toast-realtime .toast-progress {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

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

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

/* ===== Validação de Ano ===== */
.year-warning {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.year-warning-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.year-warning-alert {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

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

.input-warning {
    border-color: #ffc107 !important;
    background: #fffbf0 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Link de Voltar ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

/* ===== JSON Output ===== */
.json-output {
    background: #f8f9fa;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.json-output h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 16px;
}

.json-output pre {
    margin: 0;
    font-size: 13px;
    overflow-x: auto;
    background: var(--white);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    color: #495057;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 25px;
        border-radius: 16px;
    }

    h1 {
        font-size: 26px;
    }

    .coordinates-group {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    /* Grid de cidade/estado para uma coluna */
    .city-state-grid,
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Campos de data em coluna única em telas menores */
    .date-fields-container {
        grid-template-columns: 1fr !important;
    }

    .date-field {
        width: 100%;
    }

    /* Seletor de tipo de data em coluna */
    .date-type-selector {
        flex-direction: column;
        gap: 12px;
    }

    /* Barra do usuário responsiva */
    .user-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Mapas responsivos */
    .map-preview-map,
    #mapPreview {
        height: 300px !important;
        min-height: 300px !important;
    }

    /* Notificações fullscreen em mobile */
    .location-search-result .location-result-content {
        padding: 30px 20px;
        max-width: 90vw;
    }

    .location-result-title {
        font-size: 20px;
    }

    .location-result-message {
        font-size: 14px;
    }

    /* Loading overlay em mobile */
    .location-loading-content,
    .submit-loading-content {
        padding: 30px 20px;
        max-width: 90vw;
    }

    .location-loading-title,
    .submit-loading-title {
        font-size: 20px;
    }

    .location-loading-text,
    .submit-loading-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    label {
        font-size: 13px;
    }

    label .field-type {
        font-size: 11px;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }

    input,
    textarea,
    select {
        padding: 10px 14px;
        font-size: 14px;
    }

    button {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* Campos de período mais compactos */
    .period-section {
        padding: 12px;
    }

    .period-label {
        font-size: 14px;
    }

    /* Imagens preview grid em 1 coluna */
    .image-preview-grid {
        grid-template-columns: 1fr !important;
    }

    /* External link container em coluna */
    .external-link-container {
        flex-direction: column;
    }

    /* Número e S/N em coluna */
    .form-group > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .no-number-label {
        margin-top: 8px;
    }

    /* Tabs responsivas */
    .tab-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-nav-item {
        flex: 1 1 auto;
        min-width: calc(50% - 4px);
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Telas muito pequenas */
@media (max-width: 360px) {
    .container {
        padding: 15px 12px;
    }

    h1 {
        font-size: 20px;
    }

    label {
        font-size: 12px;
    }

    input,
    textarea,
    select {
        padding: 8px 12px;
        font-size: 13px;
    }

    button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .location-result-title,
    .location-loading-title,
    .submit-loading-title {
        font-size: 18px;
    }

    .location-result-message,
    .location-loading-text,
    .submit-loading-text {
        font-size: 13px;
    }
}

/* ===== Barra do Usuário Melhorada ===== */
.user-bar {
    background: linear-gradient(135deg, rgba(47, 108, 132, 0.08) 0%, rgba(47, 108, 132, 0.04) 100%);
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(47, 108, 132, 0.12);
}

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

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(47, 108, 132, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-role::before {
    content: '📋';
    font-size: 11px;
}

.btn-logout {
    flex: none !important;
    width: auto;
    padding: 6px 14px;
    background: transparent;
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-logout:hover {
    background: var(--accent-color);
    color: white;
}

.btn-logout::before {
    content: '↩';
    font-size: 12px;
}

/* ===== Tabs de Navegação ===== */
.page-tabs {
    display: flex;
    gap: 4px;
    background: var(--secondary-color);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.page-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-tab:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
}

.page-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-tab .tab-badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.page-tab.active .tab-badge {
    background: var(--primary-color);
}

/* ===== Seção de Conteúdo ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Meus Envios ===== */
.my-submissions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.submissions-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.submissions-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
}

.submissions-notifications {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.submissions-notification {
    flex: 1 1 260px;
    background: #fffbe6;
    border-radius: 12px;
    padding: 10px 12px;
    border-left: 4px solid #ffc107;
    font-size: 13px;
    color: #856404;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submissions-notification strong {
    font-weight: 600;
}

.submissions-notification--danger {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.submissions-notification--info {
    background: #e7f3ff;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* ===== Card de Submissão ===== */
.submission-card {
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.submission-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.submission-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.submission-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.submission-icon {
    font-size: 32px;
    line-height: 1;
}

.submission-details {
    flex: 1;
}

.submission-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.submission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.submission-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.pending::before {
    content: '⏳';
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.approved::before {
    content: '✅';
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.rejected::before {
    content: '❌';
}

.status-badge.needs_revision {
    background: #e7f3ff;
    color: #0c5460;
}

.status-badge.needs_revision::before {
    content: '✏️';
}

/* ===== Corpo do Card ===== */
.submission-body {
    padding: 16px;
}

.submission-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.submission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.submission-tag {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* ===== Caixa de Mensagens do Admin ===== */
.admin-messages {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
    border-radius: 10px;
    padding: 14px;
    margin: 12px 16px;
}

.admin-messages-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 10px;
}

.admin-messages-header::before {
    content: '💬';
    font-size: 16px;
}

.admin-message {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #ff9800;
}

.admin-message:last-child {
    margin-bottom: 0;
}

.admin-message-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
}

.admin-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.message-unread {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* ===== Ações do Card ===== */
.submission-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.btn-action {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action.btn-edit {
    background: var(--primary-color);
    color: white;
}

.btn-action.btn-edit:hover {
    background: var(--primary-dark);
}

.btn-action.btn-view {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-action.btn-view:hover {
    background: var(--secondary-dark);
}

.btn-action.btn-cancel {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #ffcccc;
}

.btn-action.btn-cancel:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-action.btn-revision {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border: 1px solid #ffc107;
}

.btn-action.btn-revision:hover {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    border-color: #e0a800;
}

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

/* ===== Modal de Edição ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* Garantir que funcione bem em diferentes viewports mobile */
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh; /* Dynamic viewport height para mobile */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e8eaed;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    flex: none !important;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Imagens no Modal de Edição ===== */
.edit-images-container {
    border: 2px dashed var(--secondary-color);
    border-radius: 12px;
    padding: 16px;
    background: #fafafa;
}

.edit-existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.edit-existing-images:empty {
    display: none;
}

.edit-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #e0e0e0;
}

.edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-image-item .remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    padding: 0;
    background: rgba(196, 76, 45, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none !important;
    opacity: 0;
    transition: opacity 0.2s;
}

.edit-image-item:hover .remove-image-btn {
    opacity: 1;
}

.edit-image-item .remove-image-btn:hover {
    background: #C44C2D;
    transform: scale(1.1);
}

.edit-image-item .image-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(47, 108, 132, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.edit-add-images {
    text-align: center;
    margin: 12px 0;
}

.btn-add-image {
    flex: none !important;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-image:hover {
    background: var(--primary-color);
    color: white;
    border-style: solid;
}

.edit-new-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.edit-new-images:empty {
    display: none;
}

.new-image-badge {
    background: #28a745 !important;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0; /* Necessário para flex children scrollarem corretamente */
    -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e8eaed;
    background: #fafafa;
    flex-shrink: 0;
}

/* ===== Conteúdo do Modal de Detalhes ===== */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.details-description {
    color: #555;
    margin-bottom: 16px;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
}

.details-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.details-value {
    color: #555;
}

/* ===== Modal de Perfil ===== */
.profile-modal {
    max-width: 450px;
}

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 20px;
}

.profile-photo-container {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(47, 108, 132, 0.2);
}

.profile-photo-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2F6C84 0%, #3d8ba6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: 600;
}

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

.profile-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-photo-container:hover .profile-photo-overlay {
    opacity: 1;
}

.profile-photo-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-photo-change,
.btn-photo-remove {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none !important;
}

.btn-photo-change {
    background: linear-gradient(135deg, #2F6C84, #3d8ba6);
    color: white;
}

.btn-photo-change:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 108, 132, 0.3);
}

.btn-photo-remove {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-photo-remove:hover {
    background: #dc3545;
    color: white;
}

.profile-photo-hint {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

.profile-info-section {
    display: grid;
    gap: 16px;
}

.profile-info-item {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 10px;
}

.profile-info-item label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.profile-info-item p {
    font-size: 15px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* Responsivo Modal de Perfil */
@media (max-width: 480px) {
    .profile-modal {
        max-width: 100%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .profile-modal .modal-body {
        max-height: 65vh;
    }
    
    .profile-photo-container {
        width: 120px;
        height: 120px;
    }
    
    .profile-photo-preview {
        font-size: 40px;
    }
    
    .profile-photo-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-photo-change,
    .btn-photo-remove {
        width: 100%;
        justify-content: center;
    }
    
    .profile-info-item {
        padding: 12px 14px;
    }
    
    .profile-info-item p {
        font-size: 14px;
        word-break: break-word;
    }
}

/* ===== Estado Vazio ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 14px;
    border: 2px dashed #e0e0e0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
}

/* ===== Motivo da Rejeição ===== */
.rejection-reason {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 14px;
    margin: 12px 16px;
}

.rejection-reason-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #721c24;
    margin-bottom: 8px;
}

.rejection-reason-text {
    font-size: 14px;
    color: #721c24;
    line-height: 1.5;
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== Acessibilidade ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para acessibilidade */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Responsividade Adicional ===== */
@media (max-width: 600px) {
    .user-bar {
        padding: 10px 12px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .btn-logout {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .page-tabs {
        flex-direction: column;
    }
    
    .submission-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .submission-actions {
        flex-direction: column;
    }
    
    .modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px); /* Dynamic viewport height para mobile */
        border-radius: 16px;
        width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 16px;
        flex-shrink: 0; /* Impede que o header encolha */
    }
    
    .modal-header h2 {
        font-size: 16px;
        word-break: break-word;
    }
    
    .modal-body {
        padding: 16px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        flex-shrink: 0; /* Impede que o footer encolha */
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 20px;
    }
    
    /* Grid de detalhes para mobile */
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes adicionais para mobile muito pequeno */
@media (max-width: 400px) {
    .modal-overlay {
        padding: 8px;
    }
    
    .modal {
        margin: 0;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        width: calc(100% - 16px);
        border-radius: 14px;
    }
    
    .modal-header {
        padding: 14px;
    }
    
    .modal-body {
        padding: 14px;
    }
    
    .modal-footer {
        padding: 10px 14px;
    }
    
    /* Conteúdo do modal de detalhes */
    .modal-body p {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .modal-body [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .details-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .user-bar {
        padding: 8px 10px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-role {
        font-size: 10px;
    }
    
    .page-tab {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .submission-card {
        padding: 14px;
    }
    
    .btn-action {
        padding: 8px 12px;
        font-size: 12px;
    }
}

