/* Overlay Background */
.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background-color: rgba(15, 23, 42, 0.5); /* setara bg-slate-900/50 */
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-overlay.is-visible {
    opacity: 1;
}

/* Modal Box */
.demo-modal {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 24rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.demo-modal.is-visible {
    transform: scale(1);
    opacity: 1;
}

/* Icon Container */
.demo-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background-color: #fef3c7; /* amber-100 */
    color: #f59e0b; /* amber-500 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    font-size: 1.875rem; /* 3xl */
}

/* Typography */
.demo-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    margin-bottom: 0.5rem;
}

.demo-text {
    font-size: 0.875rem;
    color: #475569; /* slate-600 */
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

/* Buttons */
.demo-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.demo-btn {
    flex: 1;
    padding: 0.625rem 0;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-btn:active {
    transform: scale(0.95);
}

.demo-btn-cancel {
    background-color: transparent;
    border: 1px solid #e2e8f0; /* slate-200 */
    color: #475569; /* slate-600 */
}

.demo-btn-cancel:hover {
    background-color: #f8fafc; /* slate-50 */
}

.demo-btn-ok {
    background-color: #4f46e5; /* indigo-600 */
    border: 1px solid transparent;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.demo-btn-ok:hover {
    background-color: #4338ca; /* indigo-700 */
}

/* Dark Mode (menyesuaikan dengan atribut data-theme="dark") */
html[data-theme="dark"] .demo-modal {
    background-color: #0f172a; /* slate-900 */
}

html[data-theme="dark"] .demo-title {
    color: #f1f5f9; /* slate-100 */
}

html[data-theme="dark"] .demo-text {
    color: #94a3b8; /* slate-400 */
}

html[data-theme="dark"] .demo-btn-cancel {
    border-color: #334155; /* slate-700 */
    color: #cbd5e1; /* slate-300 */
}

html[data-theme="dark"] .demo-btn-cancel:hover {
    background-color: #1e293b; /* slate-800 */
}