body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Barra de controles */
.controls-bar {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    padding: 12px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1000;
}

.filtros {
    max-width: 1200px;
    margin: 0 auto;
}

.filtros h2 {
    text-align: center;
    margin: 0 0 15px 0;
    color: #cccccc;
    font-size: 1.6em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Grupos de seleção */
.selection-group {
    display: inline-block;
    margin: 8px 10px;
    vertical-align: top;
}

.selection-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #bbb;
    font-size: 0.9em;
    height: 1em;
}

/* Selects melhorados */
.book-select, .chapter-select, .version-select {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #333333;
    color: #ffffff;
    font-size: 0.95em;
    min-width: 160px;
    height: 36px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.book-select:focus, .chapter-select:focus, .version-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.4);
    background: #404040;
}

/* Controles de versículo */
.verse-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}

.verse-input {
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #333333;
    color: #ffffff;
    font-size: 0.95em;
    width: 60px;
    height: 36px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.verse-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.4);
    background: #404040;
}

.verse-info {
    color: #bbb;
    font-weight: normal;
    font-size: 0.9em;
}

/* Controles de navegação */
.navigation-controls {
    display: inline-block;
    margin: 8px 10px;
    vertical-align: top;
}

.navigation-controls::before {
    content: "";
    display: block;
    height: 1em;
    margin-bottom: 5px;
}

.nav-btn {
    padding: 8px 14px;
    margin: 0 3px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    height: 36px;
    box-sizing: border-box;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.nav-btn:disabled {
    background: #555555;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Controles de tela cheia */
.fullscreen-controls {
    display: inline-block;
    margin: 8px 10px;
    vertical-align: top;
}

.fullscreen-controls::before {
    content: "";
    display: block;
    height: 1em;
    margin-bottom: 5px;
}

.fullscreen-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    height: 36px;
    box-sizing: border-box;
}

.fullscreen-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Área de exibição do versículo */
.verse-display-area {
    padding: 40px 20px;
    text-align: center;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title-book {
    margin: 0 0 30px 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    color: #3498db;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 10px;
}

.verse-content {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    line-height: 1.4;
    max-width: 90%;
    color: #ecf0f1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Mensagem de boas-vindas */
.welcome-message {
    text-align: center;
    padding: 10px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-message h3 {
    font-size: 1.5em;
    color: #483D8B;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.welcome-message p {
    font-size: 1.3em;
    color: #bdc3c7;
    margin-bottom: 30px;
}

.instructions {
    background: rgba(52, 152, 219, 0.1);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.instructions p {
    color: #ecf0f1;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.instructions ul {
    color: #bdc3c7;
    font-size: 1.1em;
    line-height: 1.6;
}

.instructions li {
    margin-bottom: 8px;
}

/* Debug info */
.debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

/* Modo tela cheia - OCULTAR COMPLETAMENTE OS CONTROLES */
:fullscreen {
    background: #000000 !important;
}

:fullscreen .controls-bar {
    display: none !important;
    visibility: hidden !important;
}

:-webkit-full-screen {
    background: #000000 !important;
}

:-webkit-full-screen .controls-bar {
    display: none !important;
    visibility: hidden !important;
}

:-moz-full-screen {
    background: #000000 !important;
}

:-moz-full-screen .controls-bar {
    display: none !important;
    visibility: hidden !important;
}

:-ms-fullscreen {
    background: #000000 !important;
}

:-ms-fullscreen .controls-bar {
    display: none !important;
    visibility: hidden !important;
}

/* Fallback para body */
body:fullscreen {
    background: #000000;
}

body:fullscreen .controls-bar {
    display: none !important;
    visibility: hidden !important;
}

:fullscreen .verse-display-area,
:-webkit-full-screen .verse-display-area,
:-moz-full-screen .verse-display-area,
:-ms-fullscreen .verse-display-area,
body:fullscreen .verse-display-area {
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 9999;
}

:fullscreen .title-book,
:-webkit-full-screen .title-book,
:-moz-full-screen .title-book,
:-ms-fullscreen .title-book,
body:fullscreen .title-book {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

:fullscreen .verse-content,
:-webkit-full-screen .verse-content,
:-moz-full-screen .verse-content,
:-ms-fullscreen .verse-content,
body:fullscreen .verse-content {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    background: transparent;
    padding: 40px;
    max-width: 95%;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    box-shadow: none;
    border-radius: 0;
    line-height: 1.3;
}

/* Dica de navegação no fullscreen */
.fullscreen-navigation-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: fadeInOut 4s ease-in-out infinite;
}

.hint-text {
    color: #bdc3c7;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Responsividade */
@media (max-width: 768px) {
    .controls-bar {
        padding: 15px 10px;
    }
    
    .filtros h2 {
        font-size: 1.8em;
    }
    
    .selection-group {
        display: block;
        margin: 15px 0;
        text-align: center;
    }
    
    .book-select, .chapter-select {
        width: 100%;
        max-width: 300px;
    }
    
    .navigation-controls, .fullscreen-controls {
        display: block;
        text-align: center;
        margin: 15px 0;
    }
    
    .verse-display-area {
        padding: 20px 10px;
    }
    
    .verse-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .welcome-message {
        padding: 40px 15px;
    }
    
    .instructions {
        padding: 20px;
        max-width: 90%;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.verse-display-area {
    animation: fadeIn 0.5s ease-in-out;
}

.welcome-message {
    animation: fadeIn 0.5s ease-in-out;
}
