/* =========================
   UI Overlay (Neutral)
========================= */
.ui-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* neutral dim */
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


/* =========================
   Modal Base
========================= */
.ui-modal {
    background: #ffffff;
    width: 380px;
    max-width: calc(100vw - 32px);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 2px 8px rgba(0,0,0,0.08);
    animation: uiScaleIn 0.18s ease;
}

.ui-modal-sm {
    width: 340px;
}


/* =========================
   Modal Typography
========================= */
.ui-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.ui-subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}


/* =========================
   Input
========================= */
.ui-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ui-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}


/* =========================
   Modal Actions
========================= */
.ui-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}


/* =========================
   Buttons (Neutral)
========================= */
.btn-primary {
    min-width: 72px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    background: #4f46e5;
}

.btn-secondary {
    min-width: 72px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f8fafc;
}


/* =========================
   Toast System
========================= */
#toast-root {
    position: fixed;
    top: 90px; /* ⬅ push below navbar */
    right: 20px;
    z-index: 10000;
}

.ui-toast {
    min-width: 220px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.ui-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.ui-toast.success {
    background: #16a34a;
}

.ui-toast.error {
    background: #dc2626;
}


/* =========================
   Animations
========================= */
@keyframes uiScaleIn {
    from {
        transform: scale(0.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal card */
.modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    width: 380px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: modalIn 0.18s ease-out;
}

/* Icon */
.modal-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

/* Title */
.modal-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

/* Text */
.modal-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Button */
.modal-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.modal-btn:hover {
    background: #4f46e5;
}

/* Animation */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.brand img {
    height: 40px;
    width: auto;
    display: block;
}



