/* Dashboard Premium Banner - Full Bar Design */

.dashboard-banner {
    background: linear-gradient(135deg, #290cae 0%, #4dc9e6 100%);
    border-radius: 15px;
    padding: 25px 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 10px 25px rgba(41, 12, 174, 0.2);
    margin: 20px 10px;
    color: white;
    min-height: 120px;
}

.banner-item {
    flex: 1;
    min-width: 0; /* Permite que el elemento se encoja por debajo de su contenido si es necesario */
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    overflow-wrap: anywhere; /* Evita que números largos rompan el contenedor */
}

.banner-item:hover {
    transform: translateY(-5px);
}

.banner-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.9;
    white-space: nowrap;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.banner-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    flex-shrink: 0; /* Evita que el icono se aplaste */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.banner-icon-wrapper img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.banner-icon-wrapper i {
    font-size: 1.2rem;
    color: white;
}

.banner-value {
    font-size: clamp(1.1rem, 2vw, 1.7rem); /* Tamaño dinámico: se ajusta entre 1.1rem y 1.7rem según el ancho */
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    word-break: break-all; /* Si el número es extremadamente largo, permite romperlo */
}

.banner-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Responsividad */
@media (max-width: 1200px) {
    .banner-divider {
        display: none;
    }
    .banner-item {
        flex: 1 1 45%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 576px) {
    .dashboard-banner {
        padding: 15px 5px;
    }
    .banner-item {
        flex: 1 1 100%;
        padding: 15px 10px;
    }
    .banner-value {
        font-size: 1.5rem;
    }
}

/* Dashboard Cards (Charts & Tables) */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.card-header-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 12px;
}

.card-icon-premium {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title-premium {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Table Enhancements */
.table-premium {
    width: 100%;
    margin-bottom: 0;
}

.table-premium thead {
    background: #f8fafc;
}

.table-premium th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #64748b;
    border-top: none;
    padding: 12px 15px;
}

.table-premium td {
    padding: 12px 15px;
    vertical-align: middle;
    color: #334155;
    border-top: 1px solid #f1f5f9;
}
