/* ========================================
   DESFRAGILIZADOS - SHOTLIST GENERATOR
   Design System - Minimalista & Clean
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --primary-yellow: #FFD700;
    --primary-black: #1a1a1a;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-light: #e8e8e8;
    --shadow-subtle: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === UTILITY CLASSES === */
.view {
    display: none;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   1. LOGIN VIEW
   ======================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.login-card {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 32px;
}

.login-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-card input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.login-card input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.icon-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    opacity: 1;
}

.hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
}

/* ========================================
   2. NAVBAR
   ======================================== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-subtle);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar h2::before {
    content: '';
    display: inline-block;
    width: 180px;
    height: 32px;
    background: url('../images/logo.png') no-repeat center;
    background-size: contain;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.story-id {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 4px;
}

/* ========================================
   3. BUTTONS
   ======================================== */
button {
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-black);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-black);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary-black);
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   4. HOME VIEW - LISTA DE HISTÓRIAS
   ======================================== */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-actions h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-black);
}

/* Filtros e Busca */
.filters-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.filter-dropdown {
    min-width: 180px;
}

.filter-dropdown select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-white);
    cursor: pointer;
}

/* Tabela de Histórias */
.stories-table {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    background: #ffffd8;  /* TROQUEI POR AMARELO CLARO */
    color: var(--primary-black);  /* MUDEI A COR DO TEXTO PARA PRETO */
    display: grid;
    grid-template-columns: 80px 1fr 120px 80px 140px 140px 140px 100px;
    gap: 16px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-header .table-cell {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-header .table-cell:hover {
    opacity: 0.8;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 80px 140px 140px 140px 100px;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.table-row:hover {
    background: #fafafa;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.story-id {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-black);
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.story-name {
    font-weight: 600;
    color: var(--text-dark);
}

.scene-count {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.created-by {
    color: var(--text-light);
    font-size: 13px;
}

.created-date {
    color: var(--text-light);
    font-size: 12px;
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    color: var(--text-light);
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

/* ========================================
   5. SETTINGS VIEW
   ======================================== */
.settings-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.settings-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.input-group {
    display: flex;
    gap: 12px;
}

.input-group input {
    flex: 1;
}

/* ========================================
   6. WIZARD VIEW
   ======================================== */
.wizard-progress {
    margin-bottom: 32px;
}

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-yellow);
    transition: width 0.4s ease;
}

.wizard-top-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}

.wizard-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
}

.wizard-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 24px;
}

.wizard-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Editor de Cenas */
.scenes-editor-header {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-yellow);
}

.scenes-editor-header p {
    margin-bottom: 8px;
}

.scene-editor-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.scene-editor-card:hover {
    box-shadow: var(--shadow-medium);
}

.scene-editor-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-yellow);
}

.scene-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.scene-editor-grid .full-width {
    grid-column: 1 / -1;
}

.editable-field {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.editable-field:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.save-checkmark {
    color: #10b981;
    font-weight: 700;
    margin-left: 8px;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Prompts Preview */
.prompt-preview-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.prompt-preview-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.prompt-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.prompt-section strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.prompt-text {
    background: #fafafa;
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}

/* ========================================
   7. STORY VIEWER
   ======================================== */
.scene-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.scene-counter {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
}

.scene-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
}

.scene-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-yellow);
}

.scene-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-black);
}

.scene-variables {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.scene-variables .form-group {
    margin-bottom: 0;
}

.scene-prompts {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.scene-prompts h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-display {
    position: relative;
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    font-size: 12px;
}

.copy-btn.copied {
    background: #10b981;
    color: white;
}

/* ========================================
   8. RESPONSIVIDADE DESKTOP
   ======================================== */
@media (max-width: 1400px) {
    .table-header,
    .table-row {
        grid-template-columns: 70px 1fr 100px 70px 120px 120px 120px 90px;
        gap: 12px;
    }
    
    .scene-variables {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 24px;
    }
    
    .table-header,
    .table-row {
        font-size: 12px;
        padding: 16px 20px;
    }
    
    .scene-editor-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   9. ESTADOS E ANIMAÇÕES
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   10. SCROLLBAR CUSTOMIZADA
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--border-light);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ========================================
   11. PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .btn,
    .scene-navigation,
    .wizard-top-navigation {
        display: none !important;
    }
    
    .scene-card,
    .wizard-card {
        border: none;
        box-shadow: none;
    }
}

/* ========================================
   BOTÃO DE DELETAR - ESTILO CORRIGIDO
   ======================================== */
.btn-danger {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-danger:hover {
    background: #ef4444 !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Estilo específico para o botão de deletar na tabela */
.table-cell .btn-danger {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    padding: 6px 12px;
    font-size: 12px;
}

.table-cell .btn-danger:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* Estilos para botões desabilitados */
.btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Feedback visual adicional */
.processing {
    position: relative;
}

.processing::after {
    content: " ⏳";
    font-weight: bold;
}

/* Toast styles atualizados */
.toast-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* ========================================
   NOVOS ESTILOS - SISTEMA DE CONFIGURAÇÕES COM ABAS
   ======================================== */

/* Container principal de configurações */
.settings-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

/* Sistema de Abas */
.settings-tabs {
    display: flex;
    background: #fafafa;
    border-bottom: 1px solid var(--border-light);
}

.settings-tab {
    flex: 1;
    padding: 20px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-tab:hover {
    background: #f0f0f0;
    color: var(--text-dark);
}

.settings-tab.active {
    background: var(--bg-white);
    color: var(--primary-black);
    border-bottom-color: var(--primary-yellow);
}

/* Conteúdo das Abas */
.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

/* Estilos específicos para cada aba */
#prompts-tab .settings-card,
#api-tab .settings-card,
#users-tab .settings-card {
    border: none;
    box-shadow: none;
    padding: 32px;
}

/* Estilos para a aba de Usuários */
.users-section {
    margin-bottom: 40px;
}

.users-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-yellow);
}

.users-list {
    min-height: 200px;
}

.users-table {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.users-table .table-header {
    background: #ffffd8;
    color: var(--primary-black);
    display: grid;
    grid-template-columns: 80px 1fr 200px 140px 200px;
    gap: 16px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table .table-row {
    display: grid;
    grid-template-columns: 80px 1fr 200px 140px 200px;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.users-table .table-row:hover {
    background: #fafafa;
}

.users-table .table-row:last-child {
    border-bottom: none;
}

.user-id {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-black);
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.username {
    font-weight: 600;
    color: var(--text-dark);
}

.current-user-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
}

.user-role {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.user-role.admin {
    background: #ffeaa7;
    color: #856404;
}

.user-role.normal {
    background: #d1fae5;
    color: #065f46;
}

/* Formulário de Usuário */
.user-form-section {
    background: #fafafa;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-yellow);
}

.user-form-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.password-group {
    display: flex;
    gap: 12px;
}

.password-group input {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Informações da API */
.api-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
    border-left: 4px solid #3b82f6;
}

.api-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.api-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.api-info li {
    padding: 4px 0;
    color: var(--text-light);
    font-size: 13px;
    position: relative;
    padding-left: 16px;
}

.api-info li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Estados vazios */
.empty-state {
    text-align: center;
    padding: 60px 32px;
    color: var(--text-light);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Responsividade para Abas */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
    }
    
    .settings-tab {
        padding: 16px;
    }
    
    .users-table .table-header,
    .users-table .table-row {
        grid-template-columns: 60px 1fr 120px;
        gap: 12px;
        font-size: 12px;
    }
    
    .users-table .table-header .table-cell:nth-child(4),
    .users-table .table-header .table-cell:nth-child(5),
    .users-table .table-row .table-cell:nth-child(4),
    .users-table .table-row .table-cell:nth-child(5) {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .password-group {
        flex-direction: column;
    }
}

/* Adicione ao arquivo style.css */

#loading-timer {
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

#loading-timer span {
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Efeito pulsante quando o tempo estiver acabando */
@keyframes pulse-warning {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-warning {
    animation: pulse-warning 1s infinite;
    color: #ff6b6b !important;
}

/* ========================================
   RESPONSES VIEW STYLES
   ======================================== */

.responses-list {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.response-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.response-file:hover {
    background: #fafafa;
}

.response-file:last-child {
    border-bottom: none;
}

.response-info {
    flex: 1;
}

.response-filename {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.response-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

.response-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.response-actions {
    display: flex;
    gap: 8px;
}

/* Loading state para responses */
.responses-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.responses-loading .spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto 16px auto;
}

.response-filepath {
    font-family: 'Courier New', monospace;
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 2px !important;
    word-break: break-all;
}