/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    background-image: url("image/5192479.jpg");
}

/* Estilos para el login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #c0392b;
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
}

/* Estilos para la pÃ¡gina principal */
header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    height: 50px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background-color: #e74c3c;
}

.main-menu {
    background-color: black;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.main-menu li a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
}

.main-menu li a:hover {
    background-color: #2c3e50;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dashboard-card h3 {
    margin-top: 0;
    color: #7f8c8d;
}

.dashboard-card span {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.alerts {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Estilos para las tablas */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: black;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Estilos para los formularios CRUD */
.crud-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.crud-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-container {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Colores para estados */
.estado-activo {
    color: #27ae60;
    font-weight: bold;
}

.estado-inactivo {
    color: #e74c3c;
    font-weight: bold;
}

.pago-al-dia {
    background-color: #d5f5e3;
}

.pago-proximo {
    background-color: #fef9e7;
}

.pago-mora {
    background-color: #fadbd8;
}

/**/

/* Estilos para estados de pago */
.estado-pago-al-dÃ­a {
    color: #27ae60;
    font-weight: bold;
}

.estado-pago-prÃ³ximo {
    color: #f39c12;
    font-weight: bold;
}

.estado-pago-mora {
    color: #e74c3c;
    font-weight: bold;
}

/* Estilos para paginaciÃ³n */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 15px;
}

.pagination button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Estilos para resumen */
.resumen-pagos {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.resumen-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.resumen-stats div {
    text-align: center;
}

.resumen-stats span {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
}

.resumen-stats strong {
    font-size: 18px;
    color: #2c3e50;
}


  .contenedor-horizontal {
            display: flex;          /* Activa Flexbox */
            flex-direction: row;    /* Direcci¨®n horizontal (por defecto) */
            gap: 20px;             /* Espacio entre los divs hijos */
            width: 100%;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background-color: #f9f9f9;
        }

