/* Importar fonte Poppins */
@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700");

/* Estilos responsivos com cores da versão anterior */
* {
    font-family: "Poppins", sans-serif !important;
}

body {
    font-family: "Poppins", sans-serif !important;
    color: #402C23 !important;
    font-weight: 300 !important;
    background: #eef5f9 !important;
}

.navbar-dark.bg-primary {
    background-color: #0D41CC !important;
}

.versiculo { 
    margin-bottom: 15px; 
    line-height: 1.6; 
    font-size: 1.1rem;
    color: #402C23 !important;
    font-family: "Poppins", sans-serif !important;
}

.numero-versiculo { 
    font-weight: bold !important; 
    color: #0D41CC !important; 
    margin-right: 8px;
    cursor: pointer;
    display: inline-block;
    min-width: 30px;
}

.livro-ativo { 
    background: #e3f2fd !important; 
}

.cap-ativo { 
    background: #0D41CC !important; 
    color: white !important; 
}

.btn-outline-primary {
    color: #0D41CC !important;
    border-color: #0D41CC !important;
}

.btn-outline-primary:hover {
    background-color: #0D41CC !important;
    border-color: #0D41CC !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: #0D41CC !important;
    border-color: #0D41CC !important;
}

.btn-primary:hover {
    background-color: #0D41CC !important;
    border-color: #0D41CC !important;
}

.card {
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px !important;
    background: #ffffff !important;
}

.main-content {
    background: #eef5f9 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #402C23 !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400 !important;
}

/* Desktop - Layout lado a lado */
@media (min-width: 769px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        width: 300px;
        height: calc(100vh - 56px);
        overflow-y: auto;
        background: #ffffff !important;
        border-right: 1px solid rgba(120, 130, 140, 0.13);
        box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.08);
    }
    
    .main-content {
        margin-left: 300px;
        padding: 20px;
        background: #eef5f9 !important;
    }
    
    .btn-cap {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
        margin: 2px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
        text-decoration: none !important;
        font-family: "Poppins", sans-serif !important;
        font-weight: 400 !important;
    }
    
    .versiculo {
        margin-bottom: 15px !important;
        line-height: 1.6 !important;
        font-size: 16px !important;
        color: #402C23 !important;
        font-family: "Poppins", sans-serif !important;
        background: transparent !important;
        padding: 5px 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .numero-versiculo {
        font-weight: 600 !important;
        color: #0D41CC !important;
        margin-right: 10px !important;
        font-size: 14px !important;
        min-width: 25px !important;
        display: inline-block !important;
        text-align: left !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}

/* Mobile - Sidebar deslizante */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 85%;
        height: calc(100vh - 56px);
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        overflow-y: auto;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-bottom: 80px;
    }
    
    .versiculo {
        font-size: 1.2rem;
        line-height: 1.7;
        margin-bottom: 20px;
        padding: 15px;
        background: #ffffff;
        border-radius: 4px;
        box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    }
    
    .numero-versiculo {
        font-size: 1.1rem;
        min-width: 35px;
        background: #0D41CC;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        margin-right: 12px;
    }
    
    .btn-cap {
        width: 45px !important;
        height: 45px;
        font-size: 1.1rem;
        margin: 3px;
        touch-action: manipulation;
    }
    
    .card-body {
        padding: 15px !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        color: #402C23;
        font-family: "Poppins", sans-serif;
        font-weight: 500;
    }
    
    .nav-buttons {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        background: white;
        padding: 15px;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* Melhorar scroll da sidebar */
    .sidebar .p-3 {
        padding-bottom: 50px !important;
    }
}

/* Melhorias gerais */
.btn-cap {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.versiculo {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    scroll-behavior: smooth;
}

/* Scroll customizado para webkit */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Cores dos alertas */
.alert-info {
    background-color: #cfecfe;
    border-color: #0D41CC;
    color: #0D41CC;
}

.alert-warning {
    background-color: #fff8ec;
    border-color: #ffb22b;
    color: #ffb22b;
}

/* Estilo do seletor de versões */
.form-select {
    border-color: #b1b8bb;
    color: #402C23;
    font-family: "Poppins", sans-serif;
}

.form-select:focus {
    border-color: #0D41CC;
    box-shadow: 0 0 0 0.2rem rgba(13, 65, 204, 0.25);
}

/* Navbar brand link */
.navbar-brand {
    color: #ffffff !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #ffffff !important;
    text-decoration: none;
}

.main-content .p-3 {
    padding-top: 90px !important;
}

/* Correções específicas para botões e versículos */
.btn-cap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400 !important;
    border-radius: 4px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.d-flex.flex-wrap .btn-cap {
    margin: 2px !important;
}

/* Forçar cores do Bootstrap */
.bg-primary {
    background-color: #0D41CC !important;
}

.text-primary {
    color: #0D41CC !important;
}

.border-primary {
    border-color: #0D41CC !important;
}

/* Sidebar específica */
.sidebar {
    background-color: #ffffff !important;
}

.sidebar .card {
    background-color: #ffffff !important;
    border: 1px solid rgba(120, 130, 140, 0.13) !important;
}

/* Área de conteúdo */
.main-content {
    background-color: #eef5f9 !important;
}

/* Versículos estilo versão anterior */
@media (min-width: 769px) {
    .versiculos .versiculo {
        background: transparent !important;
        padding: 8px 0 !important;
        margin-bottom: 12px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-bottom: 1px solid rgba(120, 130, 140, 0.1) !important;
    }
    
    .versiculos .numero-versiculo {
        background: transparent !important;
        color: #0D41CC !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-weight: 600 !important;
        margin-right: 8px !important;
        min-width: 30px !important;
        text-align: left !important;
        display: inline !important;
    }
}
