/* Reset de márgenes y paddings */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html,
body {
	height: 100vh;
	width: 100vw;
}
/* Estilos generales */
body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f4;
	overflow-x: hidden;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Para Firefox */
input[type="number"] {
	-moz-appearance: textfield;
}

/* Contenedor principal con flexbox */

/* Barra lateral */

/* Barra lateral */
.sidebar {
	background-color: #222;
	color: white;
	width: 250px;
	padding: 20px;
	transition: all 0.3s ease;
	overflow-y: auto;
	height: calc(100vh - 50px);
	position: fixed;
	top: 50px;
	left: 0;
	z-index: 1000;
}

.sidebar.collapsed {
	width: 0;
	padding: 0;
	overflow: hidden;
}

.sidebar.collapsed ~ .content {
	margin-left: 0;
}

.sidebar h2 {
	text-align: center;
	color: white;
	font-size: 20px;
}

.sidebar nav ul {
	list-style: none;
	padding: 0;
	border: #ccc;
}

.sidebar nav ul li {
}

.sidebar nav ul li a {
	color: white;
	text-decoration: none;
	font-size: 18px;
	display: block;
	padding: 8px 10px;
	transition: background-color 0.3s;
	border-radius: 10px;
}

.sidebar nav ul li a:hover {
	background-color: #444;
}

/* Barra de información*/
.info-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 60px;
	background-color: #333;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: 50px;
	z-index: 1000;
}

.info-left {
	display: flex;
	gap: 20px;
	align-items: center;
}

.info-bar h1 {
	font-size: 18px;
	text-align: justify;
	color: white;
}

#tiempo_restante {
	font-size: 18px;
	color: white;
	margin-left: 10px;
}
/* Contenido principal */
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-grow: 1;
	/* margin-left: 250px; */
	padding: 20px;
	transition: margin-left 0.3s ease;
	padding-top: 70px; /* Para evitar que el contenido se superponga con la barra de información */
}

.user-info {
	font-size: 14px;
	font-weight: bold;
	margin-left: 10px;
}

.info-bar h1 {
	margin-left: 10px;
	font-size: 18px;
	text-align: justify;
	color: white;
}

.info-bar p {
	margin-left: 10px;
	font-size: 18px;
	text-align: justify;
	color: white;
}

.toggle-btn {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1050;
	background: #444;
	color: white;
	border: none;
	font-size: 20px;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 4px;
}

/* Contenedor principal para centrar vertical y horizontalmente */

h2 {
	font-size: 24px;
	color: #333;
}

form input {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-sizing: border-box;
}

form button {
	width: 100%;
	padding: 10px;
	background-color: #2664ebff;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}

form button:hover {
	background-color: #0056b3;
}


form button:hover {
	background-color: #34495e;
}

/* Tablas */
table {
	width: 100%;
	border-collapse: collapse;
	
	background-color: rgb(255, 255, 255);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}
table tr:first-child th:first-child {
	border-top-left-radius: 10px;
}

table tr:first-child th:last-child {
	border-top-right-radius: 10px;
}

table tr:last-child td:first-child {
	border-bottom-left-radius: 10px;
}

table tr:last-child td:last-child {
	border-bottom-right-radius: 10px;
}

table th,
table td {
	padding: 15px;
	text-align: left;
	border: none;
	font-size: 16px;
}

table tr {
	background-color: #ffffff;
	border-bottom: 1px solid #888888;
	color: rgb(0, 0, 0);
}
table tr:hover {
	transform: translateY(-2px);
}
table th {
	padding: 15px;
	color: white;
	background-color: #0a3e5f;
}

table tr:hover {
	background-color: #ecf0f1;
}



#clock {
	margin-left: 10px;
}

/*CSS para dashboard*/
/* Contenedor del Dashboard */
.dashboard-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: calc(100vh - 80px); /* Ajusta para descontar la barra superior */
	padding: 20px;
	background-color: #f9f9f9;
}


/* ...existing code... */
.scrollable-container {
    scrollbar-width: thin;
    scrollbar-color: rgb(78, 79, 81) #eae3e0;
	border: 2px solid #e0e4ea; /* Borde para separar el contenedor del fondo */
}

.scrollable-container::-webkit-scrollbar {
    width: 10px;
    background: #e0e4ea; /* color de fondo del track */
    border-radius: 10px;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #78818a 40%, #2664ebff 100%);
    border-radius: 10px;
    border: 2px solid #e0e4ea; /* borde para separar el thumb del track */
    transition: background 0.3s;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2664ebff 40%, #34495e 100%);
}
/* ...existing code... */

/* General modal styling */
.modal {
	position: fixed; /* Fijo para que esté siempre sobre el contenido */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1050; /* Más alto que cualquier otro elemento */
	display: none; /* Oculto por defecto */
	flex-direction: column;
	align-items: center; /* Centra el contenido horizontalmente */
	justify-content: center;
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	padding: 10px;
	width: 70%; /* Ancho máximo del modal */
	max-height: 100%;
}
 

/* Overlay for modal background */
.modal-overlay {
	position: fixed; /* Fijo para cubrir toda la pantalla */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
	z-index: 1040; /* Justo debajo del modal */
	display: none; /* Oculto por defecto */
}
.modal button {
	font-size: 16px;
	padding: 10px 10px;
	transition: background-color 0.3s ease;
}
/* Scrollable sorteos */
.scrollable-container {
	/*reporte y sorteos lo usan para el modal de los tiqutes*/
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	border-radius: 5px;
	position: relative; /* Evita que el scrollbar influya en el contexto de apilamiento */
	z-index: 1; /* Asegúrate de que tenga un índice bajo */
	width: 100%; /* Ajusta el ancho del contenedor, puedes cambiar el porcentaje o usar px */

}




h4 {
	font-size: 40px;
	text-align: center;
	color: #2c3e50;
	margin-top: 20px;
}

.login-header {
	background-color: #1f2a38ff;
	color: white;
	padding: 20px;
	text-align: center;
	border-radius: 10px 10px 0 0; /* Bordes redondeados en la parte superior */
}
.login-container {
	background-color: #111826ff;
	width: 100%;
	height: 100%;
	display: flex; /* Mueve el contenedor hacia abajo y lo centra horizontalmente */
	justify-content: center; /* Centra horizontalmente */
	align-items: center; /* Centra verticalmente */
}
.login {
	border-radius: 10px;
	color: white;
	display: flex;
	flex-direction: column;
	align-items: center; /* Centra verticalmente */
	justify-content: center;
	height: 75%;
	max-height: fit-content;
	width: 400px; /* Ancho fijo del formulario */
	padding: 20px;
	background-color: #1f2a38ff;
	gap: 20px; /* Espacio entre los elementos del formulario */
}

#login-form {
	display: flex;
	flex-direction: column;
	width: 100%; /* Ancho completo dentro del contenedor */
	max-height: 100%; /* Altura máxima del formulario */
}

.form-group {
	display: flex;
	flex-direction: column;
	width: 100%; /* Ancho completo dentro del formulario */
	max-height: 100px;
}

.form-group label {
	margin-bottom: 5px;
	font-size: 16px;
	color: white;
}

.form-group input {
	background-color: #374152ff;
	padding: 10px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	width: 100%; /* Ancho completo dentro del formulario */
	box-sizing: border-box; /* Incluye el padding y el borde en el ancho total */
}

#iniciar-sesion {
	background-color: #2664ebff;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#iniciar-sesion:hover {
	background-color: #1a4bb8ff;
	color: white;
}

/* Card para Acciones */
.card {
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	padding: 20px 30px;
	max-width: 400px;
	text-align: center;
}

/* Título de la Card */
.card h2 {
	margin-bottom: 20px;
	font-size: 24px;
	color: #333;
}

/* Botones de la Card */
.card-buttons {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.card-buttons .btn {
	display: block;
	padding: 10px 20px;
	background-color: #4caf50;
	color: white;
	text-decoration: none;
	font-size: 16px;
	text-align: center;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.card-buttons .btn:hover {
	background-color: #45a049;
}
header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 5px;
}
.contenedor-principal{
	width: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
	gap: 20px;
}
input[type="date"] {
	
            color: black; /* text-gray-200 */
            border: 1px solid #4B5563; /* border-gray-600 */
            border-radius: 0.5rem; /* rounded-lg */
            padding: 0.6rem 0.75rem;
            -webkit-calendar-picker-indicator {
                filter: invert(1);
								
            }
}
@media screen and (max-width: 768px) {


	table th,
	table td {
		padding: 5px;
		padding: 15px 5px;
		width: fit-content;
	}
	td div {
		font-size: small;
		width: fit-content;
	}
	.modal {
		width: 95%; /* Ancho del modal en pantallas pequeñas */ 
		padding: 5px; /* Espacio interno del modal */
	}
	.modal table th, table td {
	    font-size: small;
	}
	.login {
		width: 90%; /* Ancho del formulario en pantallas pequeñas */
		height: 80%; /* Altura del formulario en pantallas pequeñas */
	}
	.sidebar {
		left: -250px; /* Oculto fuera de pantalla */
		width: 250px;
		height: 100%;
		padding: 20px;
		transition: left 0.3s ease;
	}

	.sidebar.open {
		left: 0;
	}

	.sidebar.collapsed ~ .content {
		margin-left: 0;
	}

	.content {
		margin-left: 0;
	}

	.info-bar {
		height: 60px;
		flex-direction: column;
		align-items: flex-start;
		min-width: 400px;
	}

	.toggle-btn {
		top: 10px;
		left: 10px;
	}
}

.sidebar.open {
	left: 0;
}

.sidebar.collapsed ~ .content {
	margin-left: 0;
}

.content {
	margin-left: 0;
}

.info-bar {
	height: 60px;
	flex-direction: column;
	align-items: flex-start;
	min-width: 400px;
}

.toggle-btn {
	top: 10px;
	left: 10px;
}

.sidebar.open {
	left: 0;
}

.sidebar.collapsed ~ .content {
	margin-left: 0;
}

.content {
	margin-left: 0;
}

.info-bar {
	height: 60px;
	flex-direction: column;
	align-items: flex-start;
	min-width: 400px;
}

.toggle-btn {
	top: 10px;
	left: 10px;
}
