/* Custom Alert Box Styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.custom-alert-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 390px;
    max-width: 100%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-sizing: border-box;
}

.custom-alert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFE5E5;
    color: #FF5722;
    font-size: 24px;
}

.custom-alert-icon.warning {
    background: #FFF3E0;
    color: #FF9800;
}

.custom-alert-icon.error {
    background: #FFEBEE;
    color: #F44336;
}

.custom-alert-icon.info {
    background: #E3F2FD;
    color: #2196F3;
}

.custom-alert-icon.success {
    background: #E8F5E8;
    color: #4CAF50;
}

.custom-alert-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.custom-alert-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    white-space: pre-line;
}

.custom-alert-button {
    background: #FF5722;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.custom-alert-button:hover {
    background: #E64A19;
    transform: translateY(-1px);
}

.custom-alert-button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.custom-alert-box.closing {
    animation: slideOut 0.2s ease-in forwards;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-alert-overlay {
        padding: 10px;
    }
    
    .custom-alert-box {
        margin: 0;
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }
    
    .custom-alert-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .custom-alert-message {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .custom-alert-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .custom-alert-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-alert-box {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .custom-alert-title {
        color: #ffffff;
    }
    
    .custom-alert-message {
        color: #cccccc;
    }
}
