/* ── CloudPlatform Sandbox Expired Card (Full Dark/Light & RTL Design System) ── */

/* Card Container */
.sandbox-expired-card {
    background: var(--mt-surface-glass, var(--bs-card-bg, #ffffff)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--mt-border, var(--bs-border-color, rgba(0, 0, 0, 0.12))) !important;
    color: var(--mt-text, var(--bs-body-color, #0f172a)) !important;
    box-shadow: var(--mt-shadow, 0 10px 30px -10px rgba(0, 0, 0, 0.1)) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Title */
.sandbox-expired-title {
    color: var(--mt-text, var(--bs-heading-color, #0f172a)) !important;
    font-weight: 700 !important;
}

/* Body description */
.sandbox-expired-text {
    color: var(--mt-text-muted, var(--bs-secondary-color, #64748b)) !important;
}

.sandbox-expired-text strong {
    color: var(--mt-text, var(--bs-body-color, #0f172a)) !important;
    font-weight: 600 !important;
}

/* Alert Box */
.sandbox-expired-alert {
    background-color: var(--mt-surface, rgba(15, 23, 42, 0.04)) !important;
    border: 1px solid var(--mt-border, rgba(15, 23, 42, 0.08)) !important;
    color: var(--mt-text, #334155) !important;
}

/* Icon Badge */
.sandbox-expired-icon-wrapper {
    width: 80px;
    height: 80px;
    font-size: 2.25rem;
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
}

/* ── Explicit Dark Mode Overrides (Matches all themes and modes) ── */
[data-theme="dark"] .sandbox-expired-card,
[data-bs-theme="dark"] .sandbox-expired-card,
html[data-theme="dark"] .sandbox-expired-card,
html[data-bs-theme="dark"] .sandbox-expired-card,
body[data-theme="dark"] .sandbox-expired-card,
.dark-theme .sandbox-expired-card,
.theme-dark .sandbox-expired-card {
    background: var(--mt-surface-glass, #111827) !important;
    border-color: var(--mt-border, rgba(255, 255, 255, 0.1)) !important;
    color: #f8fafc !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .sandbox-expired-title,
[data-bs-theme="dark"] .sandbox-expired-title,
html[data-theme="dark"] .sandbox-expired-title,
html[data-bs-theme="dark"] .sandbox-expired-title,
body[data-theme="dark"] .sandbox-expired-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .sandbox-expired-text,
[data-bs-theme="dark"] .sandbox-expired-text,
html[data-theme="dark"] .sandbox-expired-text,
html[data-bs-theme="dark"] .sandbox-expired-text,
body[data-theme="dark"] .sandbox-expired-text {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .sandbox-expired-text strong,
[data-bs-theme="dark"] .sandbox-expired-text strong,
html[data-theme="dark"] .sandbox-expired-text strong,
html[data-bs-theme="dark"] .sandbox-expired-text strong,
body[data-theme="dark"] .sandbox-expired-text strong {
    color: #ffffff !important;
}

[data-theme="dark"] .sandbox-expired-alert,
[data-bs-theme="dark"] .sandbox-expired-alert,
html[data-theme="dark"] .sandbox-expired-alert,
html[data-bs-theme="dark"] .sandbox-expired-alert,
body[data-theme="dark"] .sandbox-expired-alert {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .sandbox-expired-icon-wrapper,
[data-bs-theme="dark"] .sandbox-expired-icon-wrapper,
html[data-theme="dark"] .sandbox-expired-icon-wrapper,
html[data-bs-theme="dark"] .sandbox-expired-icon-wrapper,
body[data-theme="dark"] .sandbox-expired-icon-wrapper {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

/* System preference fallback when no explicit attribute set */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-bs-theme="light"]) .sandbox-expired-card {
        background: #111827 !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #f8fafc !important;
    }
    :root:not([data-theme="light"]):not([data-bs-theme="light"]) .sandbox-expired-title {
        color: #f8fafc !important;
    }
    :root:not([data-theme="light"]):not([data-bs-theme="light"]) .sandbox-expired-text {
        color: #cbd5e1 !important;
    }
    :root:not([data-theme="light"]):not([data-bs-theme="light"]) .sandbox-expired-text strong {
        color: #ffffff !important;
    }
    :root:not([data-theme="light"]):not([data-bs-theme="light"]) .sandbox-expired-alert {
        background-color: rgba(255, 255, 255, 0.05) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #e2e8f0 !important;
    }
}

/* ── RTL Support ── */
[dir="rtl"] .sandbox-expired-card .text-start {
    text-align: right !important;
}
