/* General Styles */

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el body cubra toda la ventana */
}


hr {
    width: 100%; /* Esto limita la longitud */
    height: 2px; /* Grosor de la línea */
    background-color: rgba(255, 255, 255, 0.829); /* Color de la línea */
    border: none; /* Asegúrate de que no hay borde */
}

/* Header */
header {
    position: fixed; /* Siempre fijo arriba */
    top: 0;
    left: 0;
    width: 100%; /* 100% de ancho */
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombras para efecto visual */
}

header .logo img {
    max-height: 50px;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

header nav a:hover {
    color: #18bc9c;
}

/* Contenido Principal */
main {
    flex: 1; /* Ocupa el espacio disponible entre header y footer */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    text-align: center;
    margin-top: 80px; /* Espacio para que no se oculte el contenido debajo del header fijo */
}



.main_center {
    margin: 0 auto;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 100px;
    width: 100%;
    max-width: 300px;
}


/* Footer */
footer {
    width: 100%; /* 100% de ancho */
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 0;
    text-align: center; /* Centra el texto */
    margin-top: 20px; /* Asegura un espacio superior respecto al contenido */
}


footer ul {

    list-style: none;

    padding: 0;

}



footer ul li {

    display: inline;

    margin: 0 10px;

}



footer ul li a {

    color: #18bc9c;

    text-decoration: none;

}



footer ul li a:hover {

    text-decoration: underline;

}

/* PAGINA DE ELIMINAR Y AÑADIR SAMPLES A LOS PADS*/

/* Contenedor Principal */
.main_max_400 {
    max-width: 400px; /* Limita el ancho de la sección */
    width: 80%;
    margin: 20px auto;
    margin-top: 100px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.main_max_800 {
    position: relative; /* Asegúrate de que el contenedor sea el contexto */
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    margin-top: 100px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.main_max_800::before {
    content: "";
    background-image: url(/images/mydjpadscom.jpg);
    background-size: cover;
    background-position: center;
    position: fixed; /* Cambia de absolute a fixed */
    top: 0;
    left: 0;
    width: 100vw; /* Asegúrate de que cubra toda la ventana del navegador */
    height: 100vh; /* Cubriendo toda la altura de la ventana */
    z-index: -1; /* Mantén el fondo detrás del contenido */
    opacity: 0.5;
}

.disabled {
    pointer-events: none;
    color: gray;
    text-decoration: none;
    cursor: not-allowed;
}


/* Título Principal */
main h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Mensajes de Error y Éxito */
.error {
    color: #ff4d4d;
    background-color: #ffe6e6;
    border: 1px solid #ff4d4d;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.success {
    color: #4caf50;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

/* Formulario */
form {
    margin-bottom: 20px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* Etiquetas */
form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Select */
form select {
    width: 80%;
    max-width: 300px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

form select:focus {
    border-color: #007bff;
}


input[type="text"], input[type="file"], input[type="password"], input[type="name"], input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="file"]:focus {
    border-color: #007BFF;
    outline: none;
}

input::placeholder {
    color: #aaa;
}

/* Botones */
form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* Botón Peligro (Eliminar todos) */
form button[style*="background-color: red"] {
    background-color: #ff4d4d;
    font-weight: bold;
}

form button[style*="background-color: red"]:hover {
    background-color: #cc0000;
}


/* END PAGE */


/* UPLOADED SAMPLERS */
.uploaded-samplers {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.uploaded-samplers h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.uploaded-samplers ul {
    list-style: none;
    padding: 0;
}

.uploaded-samplers li {
    margin-bottom: 10px;
    font-size: 16px;
}

.uploaded-samplers a {
    color: #007bff;
    text-decoration: none;
}

.uploaded-samplers a:hover {
    text-decoration: underline;
}

/* EN UPLOADED SAMPLERS */

.special-message {
    background-color: #fff8dc; /* Un tono cálido */
    color: #856404; /* Contraste */
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.hidden{
    width: 0px;
    opacity: 0;
    cursor: unset;
}
/* Estilos del ícono tipo sándwich */
.menu-icon {
    position: absolute;
    top: 20px;
    right: 60px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon div {
    width: 30px;
    height: 3px;
    background-color: #f5f5f5;
    margin: 5px 0;
}

/* Estilos del menú */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background-color: #222;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: right 0.5s ease; /* Transición más suave */
}

#mobile-menu a {
    margin: 10px 0;
    text-decoration: none;
    color: #fff;
}

#mobile-menu a:hover {
    text-decoration: underline;
}

/* Clase activa para mostrar el menú */
#mobile-menu.active {
    right: 0;
}


/* Botón para cerrar el menú */
.close-button {
    align-self: flex-end;
    margin-bottom: 20px;
    background-color: transparent;
    border: none;
    color: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
}



.buttons-container {

    margin: 20px 0;

    display: flex;

    justify-content: center;

    gap: 10px;

}

.stop-all-btn{
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    background-color: red; color: white;
}


.stop-all-btn:hover{
    background-color: #e44d4d; /* Teal como ejemplo */
}




.buttons-container button {

    padding: 10px 20px;

    background-color: #457b9d; /* Azul como ejemplo */

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    font-weight: bold;

    transition: background-color 0.3s;

}



.buttons-container button:hover {

    background-color: #2a9d8f; /* Teal como ejemplo */

}



.welcome-content {

    margin-top: 50px;

}



.welcome-content h1 {

    font-size: 2.5rem;

    margin-bottom: 20px;

}



.welcome-content p {

    font-size: 1.2rem;

    margin-bottom: 30px;

}



.action-buttons button {

    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Botones con sombra */
}

.action-buttons button:hover {
    background-color: #2980b9;
}

/* Pads Container */

.pads-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
    margin-top: 30px;
    padding-left: 2%;
    padding-right: 2%;
    height: 500px;
    width: 96%;
    margin: 0 auto;
}
/* Modo pantalla completa para los pads */

.pads-container.fullscreen {
    margin-top: -80px;
    padding-top: 20px;
    padding-bottom: 20px;
    left: 0;
    width: 96%;
    height: 96vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    background-color: #222;
    background-repeat: repeat;
    z-index: 1000;
}



/* Modo pantalla completa para la paginación */

.pagination.fullscreen-pagination {

    bottom: 10px; /* Ajusta la posición sobre el borde inferior */

    left: 0;

    width: auto; /* Asegura que ocupe todo el ancho */

    display: flex; /* Asegúrate de que los botones estén alineados */

    justify-content: center; /* Centra los botones horizontalmente */

    align-items: center; /* Centra verticalmente si es necesario */

    padding: 10px;



}

main.fullscreen-bg {
    background-color: #222; /* Cambiar el fondo a negro */
}




/* Ocultar botones no esenciales */

.buttons-container button.fullscreen {

    display: none; /* Ocultar botón de fullscreen en modo fullscreen (opcional) */

}





/* Individual Pads with Colors */

.pad {
    all: unset; /* Quita todos los estilos predeterminados del botón */
    display: inline-block; /* Hace que el botón se comporte como un div */
    
    user-select: none; /* Evita la selección de texto */

    -webkit-user-select: none; /* Evita la selección en navegadores WebKit */

    -ms-user-select: none; /* Evita la selección en IE */

    touch-action: manipulation; /* Optimiza para interacciones táctiles */


    -webkit-touch-callout: none; /* Bloquear el menú contextual */



    width: 100%;
    height: 100%;

    background: linear-gradient(145deg, #232323, #1a1a1a); /* Default base color */

    border-radius: 15px;

    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.7), -6px -6px 15px rgba(255, 255, 255, 0.1); /* 3D effect */


    justify-content: center;

    align-items: center;

    color: #ffffffa6;

    font-weight: bold;

    font-size: 1.0rem;

    text-transform: uppercase;

    cursor: pointer;

    transition: transform 0.2s, box-shadow 0.2s;

}



/* Specific Colors for All Pads */
/* Specific Colors for Pads with Central Gradient */
/* Specific Colors for Pads with Smooth Central Gradient */
.pad:nth-child(1) {
    background: radial-gradient(circle, #e63946 20%, #a03034 80%, #8b2525 100%); /* Red */
}
.pad:nth-child(2) {
    background: radial-gradient(circle, #457b9d 20%, #315a70 80%, #243b4d 100%); /* Blue */
}
.pad:nth-child(3) {
    background: radial-gradient(circle, #2a9d8f 20%, #1f7166 80%, #14544b 100%); /* Teal */
}
.pad:nth-child(4) {
    background: radial-gradient(circle, #f4a261 20%, #c37a46 80%, #9a5d38 100%); /* Orange */
}
.pad:nth-child(5) {
    background: radial-gradient(circle, #9d4edd 20%, #7436a3 80%, #56247e 100%); /* Purple */
}
.pad:nth-child(6) {
    background: radial-gradient(circle, #00b4d8 20%, #0077b6 80%, #005b8e 100%); /* Cyan */
}
.pad:nth-child(7) {
    background: radial-gradient(circle, #06d6a0 20%, #028090 80%, #015e68 100%); /* Mint Green */
}
.pad:nth-child(8) {
    background: radial-gradient(circle, #f48c06 20%, #d97706 80%, #a95b04 100%); /* Amber */
}
.pad:nth-child(9) {
    background: radial-gradient(circle, #e76f51 20%, #b04634 80%, #852f25 100%); /* Coral */
}
.pad:nth-child(10) {
    background: radial-gradient(circle, #264653 20%, #1d343f 80%, #131f26 100%); /* Dark Teal */
}
.pad:nth-child(11) {
    background: radial-gradient(circle, #2a9d8f 20%, #205f63 80%, #134347 100%); /* Emerald Green */
}
.pad:nth-child(12) {
    background: radial-gradient(circle, #e9c46a 20%, #c9a450 80%, #a3843d 100%); /* Goldenrod */
}
.pad:nth-child(13) {
    background: radial-gradient(circle, #ffbc42 20%, #e6912d 80%, #c37321 100%); /* Warm Yellow */
}
.pad:nth-child(14) {
    background: radial-gradient(circle, #8ecae6 20%, #219ebc 80%, #145f7e 100%); /* Soft Blue */
}
.pad:nth-child(15) {
    background: radial-gradient(circle, #adb5bd 20%, #495057 80%, #33393f 100%); /* Gray */
}
.pad:nth-child(16) {
    background: radial-gradient(circle, #f5a9b8 20%, #f08080 80%, #d66464 100%); /* Light Pink */
}


/* Hover State */
.pad:hover {
    filter: brightness(1.4); /* Incrementa la intensidad del brillo al pasar el mouse */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* Efecto de halo alrededor del pad */
    transition: all 0.3s ease-in-out; /* Transición suave */
}

/* Active State */
.pad:active {
    transform: scale(0.95); /* Simula una ligera reducción al presionar */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.4); /* Sombras internas y externas */
    transition: transform 0.1s ease; /* Efecto rápido para dar realismo */
}

/* Empty Pads */
.pad.empty {
    background: radial-gradient(circle, #444 20%, #222 100%); /* Degradado más sutil para pads vacíos */
    color: #747373; /* Ajuste de color para texto */
    /*border: 1px dashed #a3a2a2;  Borde estilizado para indicar que está desactivado */
    cursor: not-allowed; /* Estilo del cursor */
    opacity: 1; /* Reduce la opacidad para desactivarlos visualmente */
}




.pagination {

    display: flex;

    justify-content: center;

    margin-top: 20px;

    gap: 10px;

    z-index: 9999;

    bottom: 25px;

}



.pagination-button {

    padding: 10px 15px;

    margin: 0 5px;

    background-color: #457b9d;

    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-weight: bold;
    border:0;

    transition: background-color 0.3s;

}



.pagination-button:hover {

    background-color: #2a9d8f;

}



.pagination-button.active {

    background-color: #9de615;

    cursor: default;

}



/* LOGIN PAGE*/

/* Título */
h1 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

/* Formulario */
.login-form {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Inputs */
.login-form input {
    min-width: 230px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: #007bff;
    min-width: 230px;
}

.login-form textarea {
    min-width: 230px;
    width:93%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-form textarea:focus {
    min-width: 230px;
    border-color: #007bff;
}

/* Botón */
.login-form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #0056b3;
}

/* Mensaje de error */
.error {
    color: #ff4d4d;
    background-color: #ffe6e6;
    border: 1px solid #ff4d4d;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

/* END LOGIN PAGE*/


/* REGISTER */

/* Formulario */
.register-form {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Inputs */
.register-form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.register-form input:focus {
    border-color: #007bff;
}

/* Botón */
.register-form button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-form button:hover {
    background-color: #0056b3;
}

/* END REGISTER */

/* Responsive Design */

@media (max-width: 768px) {

    header {

        flex-direction: column;

        text-align: center;
        padding: 10px 0px;

    }

    

    .action-buttons button {

        display: block;

        width: 80%;

        margin: 10px auto;

    }

    .menu-icon{
    right: 20px;
    }

}
/* Cuadrícula general */
.pad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    gap: 10px;
    margin-bottom: 20px;
}

/* Pads disponibles en asignación */
.pad-assignment.available {
    background-color: #f9f9f9; /* Color claro para pads disponibles */
    border: 1px solid #ccc;
    cursor: pointer;
    color: #979899;
    transition: background-color 0.2s;
}

.pad-assignment.available:hover {
    background-color: #979899; /* Azul al pasar el mouse */
    color: white;
}

/* Pads asignados en asignación */
.pad-assignment.assigned {
    background-color: #e04646bd; /* Gris para pads ya asignados */
    border: 1px solid #ccc;
    color: #e2e2e2;
    cursor: not-allowed; /* Deshabilitado para clics */
}

/* Pads asignados en eliminación */
.pad-elimination.assigned {
    background-color: #ffcccc; /* Rojo claro para pads asignados */
    border: 1px solid #ff0000; /* Bordes rojos */
    cursor: pointer;
    color: #797878;
    transition: background-color 0.2s;
}

.pad-elimination.assigned:hover {
    background-color: #ff6666; /* Rojo más oscuro al pasar el mouse */
    color: rgb(44, 44, 44);
}

/* Pads vacíos en eliminación */
.pad-elimination.empty {
    background-color: #f2f2f2; /* Gris para pads vacíos */
    border: 1px solid #ccc;
    color: #aaa;
    cursor: not-allowed; /* Cursor bloqueado */
}

/* Estilo para la imagen */
.image-container {
    margin-top: 30px;
    text-align: center;
}

.image-container img {
    width: 100%; /* Asegura que la imagen se ajuste al contenedor */
    max-width: 400px; /* Define un tamaño máximo */
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra atractiva */
    margin: 20px auto; /* Espaciado y centrar la imagen */
    display: block; /* Para centrarla usando margin:auto */
}


.welcome-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.welcome-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Tabla de usuarios */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
}

thead {
    background-color: #34495e;
    color: white;
}

thead th {
    padding: 10px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody td {
    padding: 10px;
    text-align: left;
}

tbody tr:hover {
    background-color: #dfe6e9;
}

tbody td a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
}

tbody td a:hover {
    color: #e74c3c;
}

/* Mensaje cuando no hay usuarios */
tbody td[colspan="9"] {
    text-align: center;
    color: #7f8c8d;
}

/* Botón de eliminar y editar */
tbody td a {
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
}

tbody td a:first-child {
    background-color: #3498db;
    color: white;
}

tbody td a:first-child:hover {
    background-color: #2980b9;
}

tbody td a:last-child {
    background-color: #e74c3c;
    color: white;
}

tbody td a:last-child:hover {
    background-color: #c0392b;
}

/* Títulos principales */
h1 {
    font-size: 24px;
    margin: 20px 0;
    color: #2c3e50;
}



.stats-box {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 30px 0;
    }

    .stat {
        background-color: #ecf0f1;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        width: 150px;
    }

    .stat h3 {
        font-size: 24px;
        color: #2c3e50;
        margin: 0;
    }

    .stat p {
        font-size: 16px;
        color: #7f8c8d;
        margin: 0;
    }
