:root {
    --animationTime: 500;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden !important;
}

.container {
    display: grid;
    grid-template-rows: 80px 1fr minmax(calc(65px + env(safe-area-inset-bottom)), max-content);
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

content {
    grid-area: 2 / 1 / 3 / 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: hidden;
    overflow-x: hidden;
    background-color: #525659;
    height: 100%;
}

iframe {
    border: none;
    background: #e6e6e6;
    flex-shrink: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding-left: 5px;
}

footer {
    background: #e0e0e0;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #ccc;
}

button {
    padding: 10px 25px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.btn-submit {
    background: #0066cc;
    color: white;
    border: none;
}

.btn-clear {
    background: #fff;
    border: 1px solid #999;
}

.overlay {
    position: fixed;
    /* display: none; WANT VISIBLE FOR DEVELOPING
      opacity: 0; */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
}

@keyframes reveal {
    from {
        opacity: 0;
        display: none;
    }

    to {
        opacity: 1;
        display: block;
    }
}

@keyframes hide {
    from {
        opacity: 1;
        display: block;
    }

    to {
        opacity: 0;
        display: none;
    }
}


#overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 30px;
    font-family: sans-serif;
    color: white;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 999:
}

/* Container for the alert inside your overlay */
.lazy-alert-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    margin: 20px auto;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: alertPop 0.25s ease-out;
}

/* Big warning icon */
/* ⚠️ Warning Style (Validation Failed) */
.lazy-alert-icon.warn::before {
    content: "\26A0";
    color: #ef4444; /* Red */
}

/* ℹ️ Info Style */
.lazy-alert-icon.info::before {
    content: "\2139";
    color: #3b82f6; /* Blue */
}

/*  Success Style */
.lazy-alert-icon.success::before {
    content: "\2714";
    color: #22c55e; /* Green */
}

/* Alert Heading */
.lazy-alert-title {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

/* Error Description text */
.lazy-alert-text {
    margin: 0 0 24px 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

/* Modern, clickable action button */
.lazy-alert-button {
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    width: 100%;
}

/* ⚠️ WARNING / ERROR BUTTON (Your existing code) */
.lazy-alert-button.warn {
    background-color: #ef4444;
}
.lazy-alert-button.warn:hover {
    background-color: #dc2626;
}

/* ℹ️ INFORMATION BUTTON (Clean, trustworthy blue) */
.lazy-alert-button.info {
    background-color: #3b82f6;
}
.lazy-alert-button.info:hover {
    background-color: #2563eb;
}

/* ✅ SUCCESS BUTTON (Actionable, safe green) */
.lazy-alert-button.success {
    background-color: #22c55e;
}
.lazy-alert-button.success:hover {
    background-color: #16a34a;
}

/* ❓ QUESTION / HELP BUTTON (Calm, friendly purple) */
.lazy-alert-button.help {
    background-color: #8b5cf6;
}
.lazy-alert-button.help:hover {
    background-color: #7c3aed;
}

/* ⚙️ NEUTRAL / CANCEL BUTTON (Sleek slate grey) */
.lazy-alert-button.neutral {
    background-color: #64748b;
}
.lazy-alert-button.neutral:hover {
    background-color: #475569;
}

/* Quick popup entrance animation */
@keyframes alertPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
