
body {    font-family: Arial, sans-serif;    background-color: #f4f4f4;    margin: 0;    /* padding-top: 60px; REMOVIDO */    display: flex;    flex-direction: column;    min-height: 100vh;}.main-content {    flex: 1;    margin-top: 60px; /* Añadido para compensar la barra de navegación fija */}.container {    background-color: #fff;    padding: 20px 40px;    border-radius: 8px;    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);    width: 350px;    /* Centrar el container ahora que body no es flex */    margin: 40px auto;
}

.wide-container {
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 600px; /* Ancho fijo para la tarjeta flotante */
    margin: 40px auto;
}

/* Estilos para la tarjeta de saldos */
.dashboard-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.dashboard-card h3 {
    margin-top: 0;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-button {
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
}

.refresh-button:hover {
    color: #0056b3;
}

.saldo-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.saldo-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saldo-list li:last-child {
    border-bottom: none;
}

.cuenta-nombre {
    font-weight: bold;
}

.cuenta-saldo {
    color: #28a745;
    font-weight: bold;
}

.cuenta-timestamp {
    font-size: 0.85em;
    color: #6c757d;
}h2 {    text-align: center;    color: #333;}.form-group {    margin-bottom: 15px;}.form-group label {    display: block;    margin-bottom: 5px;    color: #555;}.form-group input {    width: 100%;    padding: 8px;    border: 1px solid #ddd;    border-radius: 4px;    box-sizing: border-box; /* Importante para que el padding no afecte el ancho total */}.form-group select {    width: 100%;    padding: 8px;    border: 1px solid #ddd;    border-radius: 4px;    box-sizing: border-box;    background-color: white;}.form-group textarea {    width: 100%;    padding: 8px;    border: 1px solid #ddd;    border-radius: 4px;    box-sizing: border-box;    font-family: Arial, sans-serif;    font-size: 14px;}button {    width: 100%;    padding: 10px;    border: none;    border-radius: 4px;    background-color: #007bff;    color: white;    font-size: 16px;    cursor: pointer;}button:hover {    background-color: #0056b3;}.error {    background-color: #f8d7da;    color: #721c24;    padding: 10px;    border: 1px solid #f5c6cb;    border-radius: 4px;    margin-bottom: 15px;    text-align: center;}.success {    background-color: #d4edda;    color: #155724;    padding: 10px;    border: 1px solid #c3e6cb;    border-radius: 4px;    margin-bottom: 15px;    text-align: center;}p {    text-align: center;    margin-top: 15px;}/* --- Navbar Styles --- */.navbar {    background-color: #343a40;    padding: 0.5rem 1rem;    position: fixed;    top: 0;    width: 100%;    z-index: 1000;    box-shadow: 0 2px 4px rgba(0,0,0,0.1);}.nav-container {    display: flex;    justify-content: space-between;    align-items: center;    max-width: 1200px;    margin: 0 auto;    padding: 0 20px;}/* --- Data Table Styles --- */.data-table {    width: 100%;    border-collapse: collapse;    margin-top: 20px;    box-shadow: 0 1px 3px rgba(0,0,0,0.2);    background-color: #fff;}.data-table th, .data-table td {    padding: 12px 15px;    text-align: left;    border-bottom: 1px solid #ddd;}.data-table th {    background-color: #f2f2f2;    color: #333;    font-weight: bold;}.data-table tr:hover {    background-color: #f5f5f5;}.data-table .badge {    font-size: 0.75em;    padding: 0.4em 0.6em;}.data-table .btn {    font-size: 0.8em;    padding: 0.3em 0.6em;}.data-table .bg-success {    background-color: #28a745;    color: white;}.data-table .bg-warning {    background-color: #ffc107;    color: #212529;}/* Paginación y búsqueda */.dataTables_wrapper .dataTables_paginate .paginate_button {    padding: 0.5em 0.75em;    border-radius: 0.25rem;}.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {    background-color: #007bff;    color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button:hover {    color: white !important;    background-color: #0056b3;}.dataTables_wrapper .dataTables_filter input {    border: 1px solid #ddd;    border-radius: 4px;    padding: 5px;}.dataTables_wrapper .dataTables_length select {    border: 1px solid #ddd;    border-radius: 4px;    padding: 5px;}
#drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

#drop-area:hover {
    background-color: #f0f0f0; /* Un color más claro al pasar el ratón */
}

#drop-area.highlight {
    background-color: #e0e0e0;
}

/* --- Data Table Styles --- */.admin-section {    margin-top: 40px;    padding-top: 20px;    border-top: 1px solid #eee;}.admin-section h3 {    text-align: center;    color: #555;    margin-bottom: 20px;}.admin-button {    background-color: #dc3545; /* Un color rojo para destacar */}.admin-button:hover {    background-color: #c82333;}/* --- Footer Styles --- */.site-footer {    background-color: #343a40;    color: #adb5bd;    padding: 10px 0; /* Reducido de 20px a 10px */    text-align: center;}.footer-container {    max-width: 1200px;    margin: 0 auto;    padding: 0 20px;}/* --- Report Filter Styles --- */.filter-form {    background-color: #f8f9fa;    padding: 20px;    border-radius: 8px;    margin-bottom: 20px;    display: flex;    flex-wrap: wrap;    gap: 20px;    align-items: flex-end;}.filter-form .form-group {    margin-bottom: 0;    flex: 1;    min-width: 200px;}.filter-form button {    width: auto;    flex-shrink: 0;}.clear-filter-button {    display: inline-block;    padding: 10px 15px;    background-color: #6c757d;    color: white;    text-decoration: none;    border-radius: 4px;    font-size: 16px;    height: 38px; /* Match button height */    box-sizing: border-box;    transition: background-color 0.3s;}.clear-filter-button:hover {    background-color: #5a6268;}/* --- Charts Styles --- */.charts-container {    display: grid;    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));    gap: 30px;    margin-bottom: 40px;}.chart-wrapper {    background-color: #fff;    padding: 20px;    border-radius: 8px;    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);    height: 400px;    /* Usar flexbox para gestionar el layout interno */    display: flex;    flex-direction: column;}.chart-wrapper h3 {    flex-shrink: 0; /* Evita que el título se encoja */    margin-bottom: 15px;}.chart-canvas-container {    position: relative; /* Crucial para la responsividad de Chart.js */    flex-grow: 1; /* Permite que este contenedor llene el espacio restante */
}
/* --- Status Badge Styles --- */
.status-completo, .status-incompleto {
    padding: 5px 10px;
    border-radius: 15px;
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    display: inline-block;
}

.status-completo {
    background-color: #28a745; /* Verde */
}

.status-incompleto {
    background-color: #dc3545; /* Rojo */
}

/* Corrección para el hover de los botones de dashboard */
.dashboard-button:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Media query para tablets donde el menú se colapsa */
@media (max-width: 991.98px) {
    .navbar {
        display: flex;
        justify-content: space-between; /* Asegura espacio entre brand y toggler */
        align-items: center;
    }

    .navbar-brand {
        margin-right: auto; /* Empuja el resto de los elementos a la derecha */
    }

    .navbar-toggler {
        padding: .2rem .4rem; /* Padding reducido para un botón más pequeño */
        font-size: 1.1rem;
        border: 1px solid rgba(255,255,255,0.1);
        width: 40px;  /* Ancho fijo */
        height: 40px; /* Alto fijo para hacerlo cuadrado */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Asegura que el menú desplegable se comporte correctamente */
    .navbar-collapse {
        position: absolute;
        top: 56px; /* Altura estándar de la navbar */
        left: 0;
        right: 0;
        background-color: #343a40; /* Fondo oscuro consistente */
        padding: 1rem;
        z-index: 1000;
    }
}


/* Estilo para los botones del dashboard de iControl */
.dashboard-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s;
}
.dashboard-button:hover {
    background-color: #0056b3;
    color: white; /* Asegurarse de que el color del texto no cambie */
}
