@charset "utf-8";
/* CSS Document */

/* Cargar la fuente personalizada */
@font-face {
    font-family: 'Forgotten';
    src: url('fonts/forgotten.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Forgotten', Arial, sans-serif;
    background-color: #2243b6;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Estilo del Modal Menu */
.modal-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 10px 5px 10px;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-radius: 0;
}

.logo img {
    width: 140px;
    height: 80px;
}

.menu-options {
    display: flex;
    gap: 20px;
}

.option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

.option .icon {
    font-size: 24px;
    filter: brightness(0) invert(1);
}

.option .label {
    font-size: 14px;
    margin-top: 5px;
}

.menu-options a {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	font-weight:bold;
}

.menu-options a:hover {
    color: #ffcc00;
}

/* Contenido Principal */
.content {
    width: 97%;
    max-width: 1200px;
    margin: 100px auto 20px;
}

.welcome-message {
    margin: 10px;
    text-align: center;
	color: #000;
	
}

.info-container {
    background-color: #f0f0f0;
    color: black;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Contenedor de cada rifa */
.rifa-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #CCC;
    padding: 20px 10px;
    border-radius: 5px;
}

.rifa-title h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2243b6;
}

.rifa-info p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.rifa-date p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.rifa-price h1 {
    font-size: 2.5rem;
    color: #2243b6;
    margin: 10px 0;
}

/* Barra de progreso */
.progress-container {
    width: 100%;
    margin: 10px 0;
}

.progress-info {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 10px,
        #e0e0e0 10px,
        #e0e0e0 20px
    );
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    position: relative;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.2) 10px,
        rgba(255, 255, 255, 0.2) 20px
    );
}

/* Colores dinámicos (se aplican mediante JavaScript) */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        #118611,
        #8bc34a,
        #ffc107,
        #ff7f24,
        #cd1313
    );
    background-size: 100% 100%;
    z-index: -1;
}

.rifa-button {
    margin-top: 10px;
}

.buy-button {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Forgotten', Arial, sans-serif;
    background-color: #ff7f24;
    color: #2243b6;

}

.buy-button:hover {
    background-color: #e65c00;
}



/* Mensaje cuando no hay rifas */
.no-raffles-message {
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    color: #000;
    font-size: 1.2rem;
    margin: 20px 0;
}

.no-raffles-message p {
    margin-bottom: 10px;
}

/* Selector de números */
.number-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.number-selector select {
    width: 60px;
    height: 60px;
    font-size: 100px;
    text-align: center;
    border: 1px solid #2243b6;
    border-radius: 5px;
    font-family: 'Forgotten', Arial, sans-serif;
    background-color: white;
    cursor: pointer;
}

.number-selector select:focus {
    outline: none;
    border-color: #ff7f24;
    box-shadow: 0 0 5px rgba(255, 111, 0, 0.5);
}

/* Campos de formulario */
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #2243b6;
    border-radius: 5px;
    font-family: 'Forgotten', Arial, sans-serif;
    margin-bottom: 10px;
    text-align: center;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #ff7f24;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 111, 0, 0.5);
}

/* Modal de confirmación */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.confirmation-content {
    background-color: #f0f0f0;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    color: #000;
    text-align: center;
}

.confirmation-content h3 {
    color: #2243b6;
    margin-bottom: 15px;
}

.confirmation-content p {
    margin: 8px 0;
    text-align: left;
}

.confirmation-content p strong {
    color: #2243b6;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {

    
    .confirmation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirmation-buttons button {
        width: 100%;
    }
}


/* Campos de formulario */
.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #2243b6;
    border-radius: 5px;
    font-family: 'Forgotten', Arial, sans-serif;
    margin-bottom: 10px;
    text-align: center;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ff7f24;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 111, 0, 0.5);
}

/* Botones */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button-wrapper {
    flex: 1;
    margin: 0 5px;
}

.button-wrapper.left-button {
    text-align: left;

}

.button-wrapper.right-button {
    text-align: right;

}

.back-button {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Forgotten', Arial, sans-serif;
    background-color: #2243b6;
    color: white;
}

.back-button:hover {
    background-color: #000c4a;
}

.buy-button {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Forgotten', Arial, sans-serif;
    background-color: #ff7f24;
    color: #2243b6;
}

.buy-button:hover {
    background-color: #e65c00;
}

/* Modal de confirmación */




/* Modal para número ocupado */
.taken-number-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.taken-number-content {
    background-color: #f0f0f0;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    color: #000;
    text-align: center;
}

.taken-number-content h3 {
    color: #cd1313;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 600px) {

    
    .confirmation-buttons,
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirmation-buttons button,
    .button-wrapper button {
        width: 100%;
    }
    
    .button-wrapper.left-button,
    .button-wrapper.right-button {
        text-align: center;
    }
}

		/* Agrega estos estilos en sales.css */
.sale-action-btn.resend-btn {
    background-color: #4CAF50;
    color: white;
}

.sale-action-btn.resend-btn:hover {
    background-color: #45a049;
}

.sale-action-btn.resend-all-btn {
    background-color: #2196F3;
    color: white;
    margin-left: 10px;
}

.sale-action-btn.resend-all-btn:hover {
    background-color: #0b7dda;
}

.success-message {
            background-color: #d4edda;
            color: #155724;
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 4px;
            text-align: center;
        }
        
        .error-message {
            background-color: #f8d7da;
            color: #721c24;
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 4px;
            text-align: center;
        }
        
        /* Estilos para el grid de opciones */
        .options-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .option-card {
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }
        
        .option-card:hover {
            background-color: #e9e9e9;
            border-color: #2243b6;
        }
        
        .option-card.active {
            background-color: #2243b6;
            color: white;
            border-color: #2243b6;
        }
        
        .option-card h3 {
            margin-top: 0;
        }
        
        /* Estilos para el formulario */
        .message-form {
            margin-top: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        
        .form-group input[type="text"],
        .form-group input[type="tel"],
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        
        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }
        
        .submit-btn {
            background-color: #ff7f24;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background-color 0.3s;
            width: 100%;
        }
        
        .submit-btn:hover {
            background-color: #e65100;
        }
        
        /* Estilos responsive */
        @media (max-width: 768px) {
            .options-grid {
                grid-template-columns: 1fr;
            }
            
            .admin-container {
                width: 90%;
            }
        }
        
        @media (max-width: 480px) {
            .data-container {
                padding: 15px;
            }
            
            .option-card {
                padding: 15px;
            }
        }