/* 
   static/css/common/toasts.css
   Unified Premium Toast System for Kodai Resort
*/

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

@media (max-width: 600px) {
    .toast-container {
        top: 12px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }
}

.toast-msg {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: white;
    color: #1e293b;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-left: 5px solid #cbd5e1;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .toast-msg {
        min-width: 0;
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        gap: 10px;
        animation: toastSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    }
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-msg.hiding {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
}

.toast-msg i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-msg-content {
    flex: 1;
}

.toast-msg-title {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-msg-body {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

/* Variants */
.toast-success {
    border-left-color: #0c968a; /* Resort Teal */
}
.toast-success i {
    color: #0c968a;
}
.toast-success .toast-msg-title {
    color: #0c968a;
}

.toast-error {
    border-left-color: #ef4444; /* Rose */
}
.toast-error i {
    color: #ef4444;
}
.toast-error .toast-msg-title {
    color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b; /* Amber */
}
.toast-warning i {
    color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6; /* Blue */
}
.toast-info i {
    color: #3b82f6;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL – CUSTOM CONFIRMATION DIALOG
   ───────────────────────────────────────────────────────────── */

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.active {
    opacity: 1;
}

.confirm-card {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 32px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.confirm-body {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.confirm-icon {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.confirm-icon.info {
    background: #f0fdfa;
    color: #0c968a;
}

.confirm-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.confirm-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.confirm-footer {
    display: flex;
    gap: 12px;
}

.confirm-footer button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-confirm {
    background: #ef4444; /* Default to danger for delete */
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-confirm.teal {
    background: #0c968a;
    box-shadow: 0 4px 12px rgba(12, 150, 138, 0.2);
}

.btn-confirm.teal:hover {
    background: #0a7e74;
}

@media (max-width: 480px) {
    .confirm-card {
        margin: 20px;
        padding: 24px;
    }
    .confirm-footer {
        flex-direction: column-reverse;
    }
}
