/* Custom Alert Modal Styles */

.custom-alert-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);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.custom-alert-overlay.active {
    opacity: 1;
}

.custom-alert-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 1.75rem;
    padding: 2.25rem 2rem 2rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 40px rgba(0, 0, 0, 0.03);
    text-align: center;
    transform: scale(0.9) translateY(15px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

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

/* Accent top border styling */
.custom-alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

/* Icon Container */
.custom-alert-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    animation: customAlertIconPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}

.custom-alert-icon-container svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5px;
}

/* Text Content */
.custom-alert-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.custom-alert-message {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 1.75rem;
    word-break: break-word;
    max-width: 100%;
}

/* Button Styling */
.custom-alert-button {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-alert-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

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

/* SUCCESS TYPE */
.custom-alert-overlay.type-success .custom-alert-card::before {
    background: #10b981;
}
.custom-alert-overlay.type-success .custom-alert-icon-container {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.custom-alert-overlay.type-success .custom-alert-button {
    background: #10b981;
}
.custom-alert-overlay.type-success .custom-alert-button:hover {
    background: #059669;
}

/* WARNING TYPE */
.custom-alert-overlay.type-warning .custom-alert-card::before {
    background: #f59e0b;
}
.custom-alert-overlay.type-warning .custom-alert-icon-container {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.custom-alert-overlay.type-warning .custom-alert-button {
    background: #f59e0b;
}
.custom-alert-overlay.type-warning .custom-alert-button:hover {
    background: #d97706;
}

/* ERROR TYPE */
.custom-alert-overlay.type-error .custom-alert-card::before {
    background: #ef4444;
}
.custom-alert-overlay.type-error .custom-alert-icon-container {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.custom-alert-overlay.type-error .custom-alert-button {
    background: #ef4444;
}
.custom-alert-overlay.type-error .custom-alert-button:hover {
    background: #dc2626;
}

/* Animations */
@keyframes customAlertIconPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .custom-alert-overlay {
        padding: 1rem;
    }
    .custom-alert-card {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        border-radius: 1.5rem;
    }
    .custom-alert-title {
        font-size: 1.25rem;
    }
    .custom-alert-message {
        font-size: 0.9rem;
    }
}
