* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    user-select: none;
    cursor: pointer;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-login:hover {
    background: #3498db;
    color: white;
}

.btn-register {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #3498db;
}

.dropdown-divider {
    height: 1px;
    background: #ecf0f1;
    margin: 5px 0;
}

.logout {
    color: #e74c3c;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: 0.3s;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #ecf0f1;
}

.modal-header h2 {
    color: #2c3e50;
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.forgot-password {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.social-login {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-google, .btn-facebook {
    flex: 1;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.register-link a, .login-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

/* Main Content */
.container {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex: 1;
}

.header-content {
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Resto do CSS permanece igual (search-container, info-panel, results, etc.) */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    padding: 18px 60px 18px 25px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#searchInput:focus {
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    background: white;
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #7f8c8d;
}

.info-panel {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.results-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.count-badge {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.testamento-info {
    display: flex;
    gap: 10px;
}

.testamento {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.results-container {
    min-height: 400px;
    margin-bottom: 25px;
}

.testament-group {
    margin-bottom: 30px;
}

.testament-header {
    background: linear-gradient(135deg, #636e72, #2d3436);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.old-testament .testament-header {
    background: linear-gradient(135deg, #e17055, #d63031);
}

.new-testament .testament-header {
    background: linear-gradient(135deg, #0984e3, #6c5ce7);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #3498db;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.result-item.old-testament {
    border-left-color: #e17055;
}

.result-item.new-testament {
    border-left-color: #0984e3;
}

.result-item h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.result-item .book-info {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.result-item .book-chapters {
    font-size: 11px;
    color: #bdc3c7;
    font-style: italic;
}

.no-results {
    text-align: center;
    color: #7f8c8d;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 3px dashed #bdc3c7;
}

.no-results h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.highlight {
    background-color: #ffeaa7;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    color: #d63031;
}

.group-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.group-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: #dfe6e9;
    color: #2d3436;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.group-btn:hover {
    background: #b2bec3;
    transform: translateY(-2px);
}

.group-btn.active {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nav-auth {
        display: none;
    }

    .container {
        margin: 15px;
        padding: 20px;
    }

    .stats {
        flex-direction: column;
        gap: 8px;
    }

    .results-counter {
        flex-direction: column;
        align-items: flex-start;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

    h1 {
        font-size: 1.8em;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

.btn-sortear {
    /* background: linear-gradient(45deg, #FF6B6B, #4ECDC4); */
    color: grey;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    /* transition: transform 0.3s, box-shadow 0.3s; */
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal-content {
    position: absolute;
    top: 15%; /* Ajuste principal - estava 50% */
    left: 50%;
    transform: translateX(-50%); /* Removido translateY */
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* .numero-sorteado {
    font-size: 4rem;
    font-weight: bold;
    color: #FF6B6B;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
} */

.dados-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.dado-item {
    margin: 10px 0;
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: center;  /* Centraliza horizontalmente */
    align-items: center;      /* Centraliza verticalmente */
}

.dado-label {
    color: #495057;
    text-align: center;
}

.dado-valor {
    color: #6c757d;
}

.titulo {
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    opacity: 0; /* Inicialmente invisível */
    visibility: hidden; /* Inicialmente escondido */
    transition: opacity 0.3s, color 0.3s;
}

.clear-btn:hover {
    color: #333;
}

.clear-btn:focus {
    outline: none;
}

/* Classe para mostrar o botão */
.clear-btn.visible {
    opacity: 1;
    visibility: visible;
}