@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
body { font-family: 'Inter', sans-serif; }

.sidebar { width: 16rem; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar.collapsed { width: 5rem; }
.sidebar-text { transition: opacity 0.2s ease; white-space: nowrap; overflow: hidden; opacity: 1; }
.sidebar.collapsed .sidebar-text { opacity: 0; pointer-events: none; display: none; }
.sidebar.collapsed .nav-item, 
.sidebar.collapsed .logout-btn { justify-content: center; }
.sidebar.collapsed .nav-item i, 
.sidebar.collapsed .logout-btn i { margin-right: 0; }
.sidebar.collapsed .logo-area { justify-content: center; padding: 0; }
.logo-area i { transition: margin 0.3s; }

/* --- ESTILO DAS TAGS (BADGES) --- */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* --- CONTAINER DO INPUT DE TAGS --- */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background-color: #0f172a;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 46px;
}

.tag-input-container:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 1px #f97316;
}
#custom-modal .tag-input-container:focus-within {
     border-color: #3b82f6;
     box-shadow: 0 0 0 1px #3b82f6;
}

.tag-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none !important;
    box-shadow: none !important;
    color: white;
    min-width: 80px;
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
    height: 1.5rem;
}

/* A tag visual dentro do input (a pílula) */
.tag-pill {
    display: inline-flex;
    align-items: center;
    background-color: #334155;
    color: #f1f5f9;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.80rem;
    font-weight: 500;
    gap: 0.375rem;
    border: 1px solid #475569;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.tag-pill i {
    cursor: pointer;
    color: #94a3b8;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.tag-pill i:hover { color: #f87171; }

/* --- ESTADO DE SELEÇÃO PARA DELETAR (IGUAL THUNDERBIRD) --- */
.tag-pill.mark-delete {
    background-color: #7f1d1d !important; /* Vermelho escuro */
    border-color: #ef4444 !important; /* Borda vermelha clara */
    color: #fca5a5 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4); /* Anel de foco */
    transform: scale(1.02); /* Leve aumento para destaque */
}
.tag-pill.mark-delete i {
    color: #fecaca !important;
}

/* Dropdown de sugestão */
.suggestions-list {
    position: absolute;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    width: 100%;
    max-height: 160px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 0.25rem;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}
.suggestion-item {
    padding: 0.625rem 1rem;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
}
.suggestion-item:hover, .suggestion-item.active {
    background-color: #334155;
    color: white;
}
.color-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* --- REGRAS ADICIONAIS PARA LOGOUT --- */
.logout-btn {
    cursor: pointer !important;
    z-index: 50;
    position: relative;
}