/* =========================================
   Villa Rimacini - Custom Notifications
   Beautiful styled messages matching site design
   ========================================= */

/* === Toast Notification System === */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    margin-bottom: 8px;
    max-width: 400px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.3s ease forwards;
    position: relative;
}

.toast.removing {
    animation: slideOut 0.2s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-icon {
    display: none;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    display: none;
}

.toast-message {
    font-size: 13px;
    color: #000;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.toast-close:hover {
    color: #666;
}

/* Toast Types - Minimalistic */
.toast.success,
.toast.error,
.toast.warning,
.toast.info {
    background: white;
    color: #000;
}

/* === Confirmation Modal === */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.active {
    display: flex;
    opacity: 1;
}

.confirm-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.confirm-overlay.active .confirm-modal {
    transform: scale(1);
}

.confirm-header {
    padding: 30px 30px 20px 30px;
    text-align: center;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.confirm-modal.danger .confirm-icon {
    background: #ffebee;
    color: #f44336;
}

.confirm-modal.warning .confirm-icon {
    background: #fff3e0;
    color: #ff9800;
}

.confirm-modal.info .confirm-icon {
    background: #f8f6f3;
    color: #8B7355;
}

.confirm-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-subheadline);
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}

.confirm-message {
    font-size: var(--font-size-body);
    color: #666;
    line-height: var(--line-height-base);
    padding: 0 10px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px 30px 30px;
}

.confirm-btn {
    flex: 1;
    padding: 14px 28px;
    font-size: var(--font-size-small);
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.confirm-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.2);
}

.confirm-btn.primary {
    background: #8B7355;
    color: white;
}

.confirm-btn.primary:hover {
    background: #9d8265;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.confirm-btn.danger {
    background: #f44336;
    color: white;
}

.confirm-btn.danger:hover {
    background: #e53935;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.confirm-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.confirm-btn.secondary:hover {
    background: #e0e0e0;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .toast-container {
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: none;
    }
    
    .toast {
        width: 100%;
        max-width: none;
        margin-bottom: 8px;
    }
    
    .confirm-modal {
        width: 95%;
        margin: 15px;
    }
    
    .confirm-actions {
        flex-direction: column;
    }
    
    .confirm-btn {
        width: 100%;
    }
}

