@import "tailwindcss";



/* =========================
   BASE
========================= */

.dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog.hidden {
    display: none;
}

.dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* =========================
   BOX
========================= */

.dialog-box {
    position: relative;
    background: #fff;
    color: #000;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: dialogIn 0.25s ease-out;
}

/* =========================
   HEADER
========================= */

.dialog-header {
    padding: 16px 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

/* =========================
   BODY
========================= */

.dialog-body {
    padding: 20px;
    font-size: 15px;
}

/* =========================
   FOOTER
========================= */

.dialog-footer {
    padding: 14px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.dialog-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* =========================
   DEFAULT
========================= */

.dialog-cancel {
    background: #f1f1f1;
    color: #333;
}

.dialog-approve {
    background: #2563eb;
    color: #fff;
}

/* =========================
   TYPES
========================= */

.dialog.alert .dialog-box {
    background: #fff7ed;
    color: #9a3412;
}

.dialog.danger .dialog-box {
    background: #fee2e2;
    color: #7f1d1d;
}

.dialog.success .dialog-box {
    background: #dcfce7;
    color: #14532d;
}

.dialog.info .dialog-box {
    background: #e0f2fe;
    color: #075985;
}

.app-dialog-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 16px;
}

/* =========================
   ANIMATION
========================= */

@keyframes dialogIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


