/* ===================================================
   Caryetu Unified Custom Dialogue Box
   Matches the project's design system:
   Font: 'Outfit'
   Brand: #e53f28 (CarYetu Red)
   Text: #071344 (Navy)
   Muted: #6c7283
   Border: #d4d9dd
   =================================================== */

.app-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 19, 68, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.app-dialog-card {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    padding: 2.2rem 2rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(7, 19, 68, 0.2), 0 10px 10px -5px rgba(7, 19, 68, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: "Outfit", sans-serif;
    color: #071344;
}

.app-dialog-overlay.active .app-dialog-card {
    transform: scale(1) translateY(0);
}

.app-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: 0.2s all ease;
}

.app-dialog-close:hover {
    color: #e53f28;
    background: #fef2f2;
}

.app-dialog-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    font-size: 2.1rem;
    transition: 0.25s all ease;
}

/* Icon Variations */
.app-dialog-icon-box.type-info {
    background: #e0f2fe;
    color: #0284c7;
    box-shadow: 0 0 0 6px #f0f9ff;
}

.app-dialog-icon-box.type-success {
    background: #def7ec;
    color: #059669;
    box-shadow: 0 0 0 6px #f0fdf4;
}

.app-dialog-icon-box.type-warning {
    background: #fef3c7;
    color: #d97706;
    box-shadow: 0 0 0 6px #fffbeb;
}

.app-dialog-icon-box.type-danger {
    background: #fee2e2;
    color: #dc2626;
    box-shadow: 0 0 0 6px #fef2f2;
}

.app-dialog-icon-box.type-logout {
    background: #fef2f2;
    color: #e53f28;
    box-shadow: 0 0 0 6px #fff1f2;
}

.app-dialog-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #071344;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.app-dialog-title span {
    color: #e53f28;
}

.app-dialog-message {
    font-size: 0.95rem;
    color: #6c7283;
    line-height: 1.55;
    margin-bottom: 1.6rem;
    word-break: break-word;
}

.app-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.app-dialog-btn {
    flex: 1;
    padding: 11px 18px;
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s all ease;
    font-family: "Outfit", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    white-space: nowrap;
    text-decoration: none;
}

.app-dialog-btn-cancel {
    background: #ffffff;
    color: #071344;
    border: 1px solid #d4d9dd;
}

.app-dialog-btn-cancel:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.app-dialog-btn-confirm {
    background: #e53f28;
    color: #ffffff;
    border: 1px solid #e53f28;
}

.app-dialog-btn-confirm:hover {
    background: hsl(7, 78%, 48%);
    border-color: hsl(7, 78%, 48%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(229, 63, 40, 0.25);
}

.app-dialog-btn-confirm.btn-danger {
    background: #dc2626;
    border-color: #dc2626;
}

.app-dialog-btn-confirm.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

.app-dialog-btn-confirm.btn-success {
    background: #059669;
    border-color: #059669;
}

.app-dialog-btn-confirm.btn-success:hover {
    background: #047857;
    border-color: #047857;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

@media (max-width: 480px) {
    .app-dialog-card {
        padding: 1.8rem 1.25rem 1.4rem;
    }
    .app-dialog-actions {
        flex-direction: column;
    }
    .app-dialog-btn {
        width: 100%;
    }
}

