/* =========================================================
   CLEAN GT WIDGETS
========================================================= */

.gt-widget-clean {
    border: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--gt-surface);
    box-shadow: var(--gt-shadow-sm);
}

/* =========================================================
   ACCORDION BUTTON
========================================================= */

.gt-widget-button {
    background: var(--gt-surface-secondary) !important;
    color: var(--gt-text) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 1rem 1.25rem;
}

.gt-widget-button:not(.collapsed) {
    background: var(--gt-surface-secondary) !important;
}

.gt-widget-button:focus {
    box-shadow: none !important;
}

/* =========================================================
   SUMMARY CARDS
========================================================= */

.gt-summary-card {
    border: 0;
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 2px 10px rgba(0,0,0,.05);

    transition: .18s ease;

    height: 100%;
}

.gt-summary-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* =========================================================
   ORIGINAL COLORS
========================================================= */

.gt-summary-warning {
    background-color: #fff9e6;
}

.gt-summary-danger {
    background-color: #fff3f0;
}

.gt-summary-primary {
    background-color: #eef4ff;
}

.gt-summary-success {
    background-color: #f5f9f6;
}

.gt-summary-danger-soft {
    background-color: #fdf6f6;
}

.gt-summary-neutral {
    background-color: #f4f5f7;
}

/* =========================================================
   DARK MODE
========================================================= */

[data-bs-theme="dark"] .gt-summary-card {

    border: 1px solid rgba(255,255,255,.04);

    box-shadow:
        0 1px 2px rgba(0,0,0,.4),
        0 6px 18px rgba(0,0,0,.22);
}

/* mantener colores originales pero apagados */

[data-bs-theme="dark"] .gt-summary-warning {
    background-color: #4d4320;
}

[data-bs-theme="dark"] .gt-summary-danger {
    background-color: #4a2c2c;
}

[data-bs-theme="dark"] .gt-summary-primary {
    background-color: #24364f;
}

[data-bs-theme="dark"] .gt-summary-success {
    background-color: #22382d;
}

[data-bs-theme="dark"] .gt-summary-danger-soft {
    background-color: #402626;
}

[data-bs-theme="dark"] .gt-summary-neutral {
    background-color: #2d3138;
}

/* =========================================================
   TEXTS
========================================================= */

.gt-summary-title {
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .4rem;
    color: #6b7280;
    line-height: 1.3;
}

.gt-summary-value {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
}

/* DARK MODE TEXT */

[data-bs-theme="dark"] .gt-summary-title {
    color: rgba(255,255,255,.72);
}

[data-bs-theme="dark"] .gt-summary-value {
    color: #f3f4f6;
}

/* bootstrap text colors dark fix */

[data-bs-theme="dark"] .text-warning {
    color: #ffd453 !important;
}

[data-bs-theme="dark"] .text-danger {
    color: #ff8c8c !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #7db4ff !important;
}

[data-bs-theme="dark"] .text-success {
    color: #7ee2a8 !important;
}

[data-bs-theme="dark"] .text-info {
    color: #79d7ff !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .gt-summary-value {
        font-size: 1.25rem;
    }

}

@media (max-width: 768px) {

    .gt-summary-title {
        font-size: .68rem;
    }

    .gt-summary-value {
        font-size: 1.1rem;
    }

}