/* ============================================
   VERBUM FLUENT - Estilos Principais
   Design: Moderno e Elegante
   Cores: Azul e Branco
   Fonte: Inter
   ============================================ */
/* === RESET E CONFIGURAÇÕES GLOBAIS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    /* Cores Principais */
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --primary-blue-light: #3B82F6;
    --secondary-blue: #60A5FA;
    --accent-blue: #93C5FD;
    /* Cores Neutras */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    /* Cores de Status */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    /* Dimensões */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 8px;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
/* Utilitários */
.spinner-blue {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin-utility 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin-utility {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* === SIDEBAR === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    transition: transform var(--transition-base);
}
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--gray-200);
}
.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}
.logo-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-600);
}
/* Perfil do Usuário */
.sidebar-user {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
}
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-initials {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}
.user-info {
    flex: 1;
    min-width: 0;
}
.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-email {
    font-size: 13px;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Menu de Navegação */
.sidebar-menu {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}
.menu-list {
    list-style: none;
}
.menu-item {
    margin-bottom: 4px;
    padding: 0 12px;
}
.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    font-size: 15px;
    font-weight: 500;
}
.menu-link:hover {
    background-color: var(--gray-100);
    color: var(--primary-blue);
}
.menu-item.active .menu-link {
    background-color: var(--primary-blue);
    color: var(--white);
}
.menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
.menu-text {
    flex: 1;
}
/* Footer da Sidebar */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--gray-200);
}
.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--error);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    font-size: 15px;
    font-weight: 500;
}
.logout-link:hover {
    background-color: rgba(239, 68, 68, 0.1);
}
/* === MAIN WRAPPER === */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}
/* Header Principal */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 32px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.notification-btn {
    position: relative;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}
.notification-btn:hover {
    background-color: var(--gray-100);
    color: var(--primary-blue);
}
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--error);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
/* Conteúdo Principal */
.main-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
/* Footer Principal */
.main-footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 24px 32px;
    margin-top: auto;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-text {
    color: var(--gray-600);
    font-size: 14px;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}
.footer-link:hover {
    color: var(--primary-blue);
}
.separator {
    color: var(--gray-400);
}
/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    color: var(--gray-700);
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}
.mobile-menu-toggle:hover {
    background-color: var(--gray-100);
    color: var(--primary-blue);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-base);
}
/* === CARDS === */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}
.card-body {
    color: var(--gray-700);
}
/* === BOTÕES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--primary-blue);
}
.btn-success {
    background-color: var(--success);
    color: var(--white);
}
.btn-success:hover {
    background-color: #059669;
}
.btn-danger {
    background-color: var(--error);
    color: var(--white);
}
.btn-danger:hover {
    background-color: #DC2626;
}
/* === FORMULÁRIOS === */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-900);
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-control::placeholder {
    color: var(--gray-400);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.form-help {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
}
.form-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
}
/* === BADGES E TAGS === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
}
.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}
.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}
.badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}
/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .main-content {
        padding: 24px;
    }
}
@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    .main-header {
        padding: 0 16px 0 70px;
    }
    .main-content {
        padding: 20px 16px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .header-title {
        font-size: 20px;
    }
    .card {
        padding: 16px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* === DICIONÁRIO E VOCABULÁRIO === */
.clickable-word {
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    padding: 0 2px;
}
.clickable-word:hover {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background-color: rgba(37, 99, 235, 0.05);
}
/* Painel de Etimologia Lateral (Drawer) */
.etymology-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(2px);
}
.etymology-overlay.active {
    display: block;
}
.etymology-panel {
    position: fixed !important;
    top: 0 !important;
    right: -500px !important;
    width: 450px !important;
    max-width: 100% !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
}
.etymology-panel.active {
    right: 0 !important;
}
.etymology-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}
.etymology-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue-dark);
}
.close-panel {
    background: var(--gray-200);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.close-panel:hover {
    background: var(--gray-300);
    color: var(--black);
    transform: rotate(90deg);
}
.etymology-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
/* === SERMÕES === */
.sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.sermon-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 20px;
    transition: all var(--transition-base);
}
.sermon-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}
.text-hebraico {
    font-family: 'Times New Roman', serif;
    direction: rtl;
    text-align: right;
    font-size: 1.2em;
}
.text-grego {
    font-family: 'Times New Roman', serif;
    font-size: 1.2em;
}
/* === ESTUDO PROFUNDO (DEEP STUDY) === */
.deep-study-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.main-word {
    font-size: 48px;
    margin-bottom: 0px;
    color: var(--primary-blue);
    font-family: 'Times New Roman', serif;
}
.word-pronunciation {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-style: italic;
}
.study-section {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}
.study-section.accent {
    background-color: var(--gray-50);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}
.section-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.translation-main {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
}
.grammatical-tag {
    display: inline-block;
    font-size: 12px;
    background: var(--gray-200);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}
.highlight-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}
.usage-note {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
}
.help-text {
    display: block;
    margin-top: 8px;
    color: var(--gray-400);
    font-size: 11px;
}
@media (max-width: 480px) {
    .main-word {
        font-size: 36px;
    }
}