/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600&family=DM+Sans:wght@300;400;500&display=swap');

/*Page Loader*/
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(44, 123, 229, 0.2);
    border-radius: 50%;
    border-top-color: #2c7be5;
    animation: spin 0.3s cubic-bezier(0.65, 0.25, 0.25, 0.65) infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Override Bootstrap modal-content */
#messageModal .modal-content {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e4e0da;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}

#messageModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #f0ede8;
    background: #fff;
}

#messageModal .modal-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
}

#messageModal .btn-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #e4e0da;
    background: #faf9f7;
    opacity: 1;
    transition: all 0.15s ease;
}

#messageModal .btn-close:hover {
    background: #f0ede8;
    border-color: #d8d4ce;
}

#messageModal .modal-body {
    padding: 18px 22px 22px;
    background: #fff;
}

/* ── Alert base ── */
#messageModal .alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 8px;
    border: 1px solid transparent;
    animation: alert-in 0.28s ease both;
}

#messageModal .alert:last-child {
    margin-bottom: 0;
}

@keyframes alert-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Alert variants ── */
#messageModal .alert-success {
    background: #f0faf4;
    border-color: #c6e9d4;
    color: #2d6a47;
}

#messageModal .alert-danger,
#messageModal .alert-error {
    background: #fdf3f3;
    border-color: #f0c8c8;
    color: #8b2f2f;
}

#messageModal .alert-warning {
    background: #fffbf0;
    border-color: #f0e0a0;
    color: #7a5c10;
}

#messageModal .alert-info {
    background: #f2f7fd;
    border-color: #c2d8f2;
    color: #1e4d80;
}


#messageModal .alert-messages {
    background: #f2f7fd;
    border-color: #c2d8f2;
    color: #1e4d80;
}