/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #032154; /* Color base azul */
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
}

header h1 {
    font-size: 24px;
    margin-right: 20px;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #1e3c72;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #032154;
}

/* Form Fields */
input[type="text"], input[type="password"], select, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus, button:focus {
    border-color: #032154;
    outline: none;
}

/* Button */
button {
    background-color: #032154;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1e3c72;
}

/* Login-specific styles */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #032154;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #032154;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #032154;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #021334;
}

/* Dashboard */
.dashboard-container {
    width: 80%;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-container h2 {
    color: #032154;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #032154;
    color: white;
}

/* Footer */
footer {
    background-color: #032154;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    font-size: 14px;
    margin-top: auto; /* Asegura que el footer esté al final de la página */
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header nav {
        margin-top: 10px;
    }

    .form-container, .login-container, .dashboard-container {
        width: 90%;
        margin: 20px auto;
    }

    .form-container input, .login-form input, .dashboard-container table {
        width: 100%;
    }

    .dashboard-container table {
        font-size: 14px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .login-form button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 8px;
    }

    .form-container, .login-container, .dashboard-container {
        padding: 15px;
    }

    .form-container h2, .login-container h2, .dashboard-container h2 {
        font-size: 18px;
    }

    input[type="text"], input[type="password"], select, button {
        font-size: 14px;
        padding: 8px;
    }

    .login-form button {
        font-size: 14px;
        padding: 8px;
    }

    table {
        font-size: 12px;
    }

    footer {
        font-size: 12px;
    }
}

/* Estilos específicos para ver_wifi.php */
.container {
    width: 90%;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow-x: auto;
}

.title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    color: #032154;
}

/* Estilos del formulario */
form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

form label {
    margin-right: 10px;
    color: #032154;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px 20px;
    background-color: #032154;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

form button:hover {
    background-color: #1e3c72;
}

/* Estilos de la tabla */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.table th {
    background-color: #032154;
    color: white;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
}

.btn {
    padding: 5px 10px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
}

.btn-edit {
    background-color: #28a745;
}

.btn-delete {
    background-color: #dc3545;
}

.btn:hover {
    opacity: 0.8;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination a {
    padding: 10px 20px;
    background-color: #032154;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #1e3c72;
}

@media (max-width: 768px) {
    h1 {
        font-size: 10px; /* Reduce el tamaño del título principal */
    }
    
    h2 {
        font-size: 12px; /* Reduce el tamaño de los subtítulos */
    }
    
    p {
        font-size: 10px; /* Reduce el tamaño del texto de los párrafos */
    }
    
    table {
        font-size: 10px; /* Reduce el tamaño del texto dentro de la tabla */
    }
    
    th, td {
        padding: 5px; /* Reduce el espaciado en las celdas de la tabla */
    }
}

