/* 
 * GlassAlert - Portal 2026 Custom Notification System
 * TN-SPARK Surgical Planning Platform
 */

.glass-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 118, 110, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.glass-alert-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 2.25rem;
    padding: 2.5rem;
    color: #1e293b;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.2);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

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

/* Glass Variants (Error, Success, Info) */
.glass-alert-error {
    background: rgba(254, 226, 226, 0.5) !important; /* Light Red */
    border-color: rgba(248, 113, 113, 0.5) !important;
}

.glass-alert-success {
    background: rgba(220, 252, 231, 0.5) !important; /* Light Green */
    border-color: rgba(74, 222, 128, 0.5) !important;
}

.glass-alert-info, .glass-alert-question {
    background: rgba(224, 242, 254, 0.5) !important; /* Light Blue */
    border-color: rgba(56, 189, 248, 0.5) !important;
}

/* Icon Styles */
.glass-alert-icon-wrapper {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-alert-success .glass-alert-icon-wrapper { color: #10b981; }
.glass-alert-error .glass-alert-icon-wrapper { color: #ef4444; }
.glass-alert-warning .glass-alert-icon-wrapper { color: #f59e0b; }
.glass-alert-question .glass-alert-icon-wrapper { color: #0ea5e9; }
.glass-alert-info .glass-alert-icon-wrapper { color: #64748b; }

/* Typography */
.glass-alert-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02rem;
    color: #0f172a !important; /* Forces high contrast for the title */
}

.glass-alert-body {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #334155 !important; /* Slightly darker slate (700) for body text */
}

.glass-alert-body ul {
    text-align: left;
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.45); /* Increased opacity for better text contrast */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    list-style: none;
}

.glass-alert-error-list li {
    color: #1e293b !important; /* Darkest slate for errors */
}

.glass-alert-body li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.glass-alert-body li::before {
    content: "\2022"; /* Standard CSS bullet escape sequence to avoid encoding issues */
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 800;
}

/* Buttons */
.glass-alert-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.glass-alert-btn {
    appearance: none;
    border: none;
    background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.4);
}

.glass-alert-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(20, 184, 166, 0.5);
    filter: brightness(1.05);
}

.glass-alert-btn:active {
    transform: translateY(0) scale(0.98);
}

.glass-alert-btn.cancel {
    background: rgba(255, 255, 255, 0.6);
    color: #64748b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.glass-alert-btn.cancel:hover {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.glass-alert-error .glass-alert-btn:not(.cancel) {
    background: linear-gradient(135deg, #be123c 0%, #fb7185 100%);
    box-shadow: 0 10px 25px -5px rgba(190, 18, 60, 0.4);
}

.glass-alert-error .glass-alert-btn:not(.cancel):hover {
    box-shadow: 0 15px 35px -5px rgba(190, 18, 60, 0.5);
}
