﻿/* ==========================================
   BARRA DE BUSCA INTELIGENTE (AUTOCOMPLETE)
   ========================================== */
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-wrapper .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 1.1rem; z-index: 2; }
.custom-select-wrapper input[type="text"] { padding-left: 40px; font-weight: 500; }
.custom-select-list { position: absolute; top: calc(100% + 4px); left: 0; width: 100%; max-height: 250px; overflow-y: auto; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 1000; display: none; }
.custom-select-list.active { display: block; animation: fadeUp 0.2s ease; }
.custom-option { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--bg-gray); font-size: 0.9rem; transition: all 0.2s; color: var(--text-primary); }
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: var(--bg-gray-dark); color: var(--accent); font-weight: 600; padding-left: 20px;}
.custom-option strong { display: block; color: var(--text-primary); font-size: 0.9rem; }
.custom-option small { display: block; margin-top: 3px; color: var(--text-tertiary); font-size: 0.76rem; }
.custom-option:hover small { color: var(--text-secondary); font-weight: 500; }
.custom-option-empty { padding: 12px 16px; color: var(--text-tertiary); font-size: 0.9rem; text-align: center; }
/* ==========================================
   TOAST NOTIFICATIONS (MINI MODAIS FLUTUANTES)
   ========================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    left: auto;
    max-width: calc(100vw - 48px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none; /* NÃ£o bloqueia cliques atrÃ¡s dele */
}

.toast {
    width: min(390px, calc(100vw - 48px));
    min-width: 0;
    max-width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateY(-12px);
    opacity: 0;
    animation: toastIn 0.28s ease forwards;
    border-left: 4px solid var(--primary);
    pointer-events: all;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--primary); }

.toast i { font-size: 1.5rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--primary); }

.toast-content {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 3px;
}

.toast-title {
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.25;
}

.toast-message { 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--text-secondary); 
    line-height: 1.4;
}

.toast-close {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
}

.toast-close:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.toast-close i { font-size: 1rem; }

@keyframes toastIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutUp {
    to { opacity: 0; transform: translateY(-20px); }
}

/* Responsivo para telemÃ³veis */
@media (max-width: 768px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: calc(100vw - 32px);
        align-items: center;
    }
    .toast {
        width: 100%;
        max-width: 100%;
        animation: toastIn 0.28s ease forwards;
    }
}
