/* Variables de colores para personalización */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --background-color: #e3f2fd;
    --text-color: #333;
    --button-hover: #004494;
}

/* Fondo con degradado */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--background-color), #bbdefb);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Contenedor principal con sombra */
.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Título */
h1 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Grupo de entrada de texto */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.form-group input {
    padding: 12px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.form-group button {
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    padding: 12px;
    transition: 0.3s;
}

.form-group button:hover {
    background-color: var(--button-hover);
}

/* Botón de escaneo QR */
button {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 12px;
    font-size: 18px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: var(--secondary-color);
}

button:active {
    transform: scale(0.98);
}

/* Spinner de carga */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.spinner {
    font-size: 24px;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos de la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr td {
    color: var(--text-color);
}

/* Diseño responsivo */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    th, td {
        font-size: 14px;
    }
}