/* Layout styles — critical (FOUT/CLS) + custom alert modal. Extracted from layouts/app.blade.php. */

/* Critical (prevent FOUT / layout shift) */
/* Prevent FOUT (Flash of Unstyled Text) */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
/* Reserve space for header */
.header { min-height: 64px; }
/* Image placeholders to prevent CLS */
img { background-color: #f3f4f6; }
img[loading="lazy"] { transition: opacity 0.3s ease; }

/* Custom Alert Modal */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes alertSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes alertOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes iconPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.custom-alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 64, 175, 0.15);
    backdrop-filter: blur(4px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.custom-alert-overlay.show {
    display: flex;
    animation: alertOverlayIn 0.2s ease;
}
.custom-alert {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.25);
    padding: 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: alertSlideIn 0.3s ease;
}
.custom-alert-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: iconPop 0.4s ease 0.1s both;
}
.custom-alert-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}
.custom-alert-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
.custom-alert-icon.info {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.custom-alert-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.custom-alert-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}
.custom-alert-message {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 24px;
    line-height: 1.5;
}
.custom-alert-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}
@media (max-width: 480px) {
    .custom-alert { padding: 24px; }
    .custom-alert-icon { width: 56px; height: 56px; }
    .custom-alert-icon svg { width: 28px; height: 28px; }
}
