/* ARQUIVO: assets/css/style.css */
/* Versão: NINO OS - Glassmorphism Light & Minimalist (Global) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* PALETA DE CORES - Minimalista e Clean */
    --accent-color: #2563eb;       /* Azul primário elegante */
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.1);
    
    /* EFEITO DE VIDRO (GLASSMORPHISM) */
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(255, 255, 255, 0.6);
    --border-color: #e2e8f0;       /* Bordas sólidas super finas */
    --shadow-glass: 0 8px 32px rgba(37, 99, 235, 0.04);
    
    /* TIPOGRAFIA & CORES DE TEXTO (Menores e mais leves) */
    --text-main: #1e293b;          /* Cinza escuro suave */
    --text-muted: #64748b;         /* Cinza médio para subtítulos */
    --font-main: 'Inter', sans-serif;
    
    /* GEOMETRIA (Soft & Pill) */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 50px;           /* O famoso formato pílula */
    
    --sidebar-width: 260px;
}

/* ==========================================
   1. RESET E FUNDO GLOBAL (O Gradiente Azul Suave)
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; font-family: var(--font-main); }

body {
    /* Fundo gelo com manchas radiais azuis esfumaçadas (Efeito do Link) */
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(219, 234, 254, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(224, 231, 255, 0.6) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-size: 13.5px; /* Fonte minimalista */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
ul { list-style: none; }

/* Tipografia de Cabeçalhos (Mais finos e elegantes) */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 700; color: var(--text-main); letter-spacing: -0.02em;
}

/* ==========================================
   2. ESTRUTURA GLOBAL DE PÁGINAS
   ========================================== */
.app-container { display: flex; width: 100%; min-height: 100vh; position: relative; }

.main-content {
    flex: 1; 
    margin-left: var(--sidebar-width); 
    width: calc(100% - var(--sidebar-width));
    padding: 0 40px 40px 40px;
    transition: margin-left 0.3s ease, width 0.3s ease;
    z-index: 1;
}

/* ==========================================
   3. CARTÕES BASE GLOBAIS (Para Projetos, Clientes, etc)
   ========================================== */
.card-base {
    background: var(--bg-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg); 
    padding: 24px; 
    box-shadow: var(--shadow-glass);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ==========================================
   4. BOTÕES (Efeito Pílula Minimalista)
   ========================================== */
.btn, .btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 0 20px; 
    border-radius: var(--radius-pill);
    font-weight: 600; cursor: pointer; border: none; font-size: 0.85rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary { 
    background: var(--accent-color); color: #ffffff; 
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); 
}
.btn-primary:hover { 
    background: var(--accent-hover); transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); 
}

.btn-secondary { 
    background: #ffffff; color: var(--text-main); 
    border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.02); 
}
.btn-secondary:hover { 
    background: #f8fafc; transform: translateY(-2px); 
}

.btn-danger { background: #ef4444; color: #ffffff; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); transform: translateY(-2px); }

/* ==========================================
   5. INPUTS E FORMULÁRIOS (Pílulas Suaves)
   ========================================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }

.form-input, .form-textarea, .form-select {
    width: 100%; padding: 0 18px;
    background: rgba(255, 255, 255, 0.8); 
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill); /* Pílula! */
    color: var(--text-main); font-size: 0.85rem;
    transition: all 0.2s ease;
    min-height: 44px;
}
.form-textarea { border-radius: var(--radius-md); padding: 14px 18px; resize: vertical; min-height: 100px; }
.form-input:focus, .form-textarea:focus, .form-select:focus { 
    border-color: var(--accent-color); 
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}

/* ==========================================
   6. MODAIS E TOASTS (Vidro Perfeito)
   ========================================== */
.bliss-toast-container { position: fixed; top: 20px; right: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 10px; }

.bliss-toast {
    min-width: 260px; padding: 14px 20px;
    background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    color: var(--text-main); border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glass); border: 1px solid var(--border-glass);
    display: flex; align-items: center; gap: 12px;
    font-weight: 600; font-size: 0.85rem; 
    border-left: 4px solid var(--accent-color);
    transform: translateX(120%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.bliss-toast.show { transform: translateX(0); opacity: 1; }
.bliss-toast.success { border-left-color: #10b981; }
.bliss-toast.error { border-left-color: #ef4444; }

.bliss-confirm-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.bliss-confirm-overlay.show { opacity: 1; visibility: visible; }

.bliss-confirm-box {
    background: var(--bg-glass-hover); backdrop-filter: blur(20px);
    width: 100%; max-width: 400px; border-radius: var(--radius-lg); padding: 32px; text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid var(--border-glass);
    transform: scale(0.95); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bliss-confirm-overlay.show .bliss-confirm-box { transform: scale(1); }
.bliss-confirm-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.bliss-confirm-msg { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.bliss-confirm-actions { display: flex; gap: 12px; }
.bliss-confirm-actions button { flex: 1; }

/* ==========================================
   7. ANIMAÇÕES E UTILITÁRIOS
   ========================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.animate-enter { animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.badge {
    padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* ==========================================
   8. RESPONSIVIDADE GLOBAL
   ========================================== */
@media (max-width: 1024px) {
    .main-content { margin-left: 0 !important; width: 100% !important; padding: 90px 20px 30px 20px !important; }
}
@media (max-width: 768px) {
    .main-content { padding: 80px 16px 24px 16px !important; }
    .card-base { padding: 20px; }
    .btn, .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ==========================================
   NINO CURSOR: Efeito de Mouse Magnético
   ========================================== */

/* Esconde o cursor padrão do sistema para dar lugar ao nosso */
@media (min-width: 1025px) {
    body, a, button, input, .clickable {
        cursor: none !important; 
    }
}

/* O ponto central exato */
.nino-cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none; /* Para não atrapalhar o clique */
    z-index: 999999;
    transform: translate(-50%, -50%);
}

/* O anel que segue com atraso suave */
.nino-cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1.5px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Efeito quando passa o mouse por cima de um link ou botão */
.nino-cursor-ring.hovered {
    width: 48px; height: 48px;
    background: rgba(37, 99, 235, 0.1); /* Fundo translúcido */
    border-color: transparent;
}

/* Oculta o efeito no telemóvel, pois não existe mouse em ecrãs touch */
@media (max-width: 1024px) {
    .nino-cursor-dot, .nino-cursor-ring { display: none !important; }
    body, a, button, input { cursor: auto !important; }
}

/* DESLIGA O CURSOR MAGNÉTICO DURANTE O ARRASTO (Evita Lag) */
body.nino-is-dragging .nino-cursor-dot,
body.nino-is-dragging .nino-cursor-ring {
    display: none !important;
    opacity: 0 !important;
}

body.nino-is-dragging * {
    cursor: grabbing !important;
}

/* =========================================================
   NINO SELECT (O MENU DROPDOWN CUSTOMIZADO)
   Substitui as caixas de seleção nativas feias
   ========================================================= */
.nino-custom-select { 
    position: relative; 
    width: 100%; 
    user-select: none; 
}

/* A Caixa Fechada */
.nino-select-trigger {
    padding: 14px 16px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0;
    background: #f8fafc; 
    color: #0f172a; 
    font-size: 0.95rem; 
    font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nino-custom-select.open .nino-select-trigger { 
    border-color: var(--accent-color, #2563eb); 
    background: #ffffff; 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
}

.nino-select-trigger svg { 
    transition: transform 0.3s ease; 
    color: #64748b; 
}
.nino-custom-select.open .nino-select-trigger svg { 
    transform: rotate(180deg); 
    color: var(--accent-color, #2563eb);
}

/* O Menu Flutuante (A Ilusão) */
.nino-select-options {
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0,0,0,0.05); 
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    max-height: 250px; overflow-y: auto; 
    z-index: 999999;
    padding: 8px;
    
    /* Animação de Entrada */
    opacity: 0; visibility: hidden; 
    transform: translateY(-10px); 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nino-custom-select.open .nino-select-options { 
    opacity: 1; visibility: visible; transform: translateY(0); 
}

/* Barra de rolagem minimalista */
.nino-select-options::-webkit-scrollbar { width: 6px; }
.nino-select-options::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Cada Item da Lista */
.nino-select-option {
    padding: 12px 16px; 
    border-radius: 10px; 
    cursor: pointer; 
    color: #475569; 
    font-size: 0.9rem; 
    font-weight: 600; 
    transition: all 0.2s ease;
}

.nino-select-option:hover { 
    background: #f1f5f9; color: #0f172a; transform: translateX(4px);
}

/* O Item Selecionado (Fundo Azul Claro) */
.nino-select-option.selected { 
    background: rgba(37, 99, 235, 0.08); 
    color: var(--accent-color, #2563eb); 
    font-weight: 800; 
}

/* Se a opção original for "disabled" (Ex: Selecione o mês...) */
.nino-select-option.disabled {
    color: #94a3b8; font-style: italic; pointer-events: none;
}

/* ==========================================================================
   APP HEADER (Busca e Perfil no Topo)
   ========================================================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 30px 0;
    margin-bottom: 10px;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 50px; /* Formato Pílula */
    padding: 8px 16px;
    width: 380px;
    transition: all 0.3s ease;
}

.header-search:focus-within {
    background: #ffffff;
    border-color: var(--accent-color, #2563eb);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.header-search svg { color: #64748b; margin-right: 10px; }
.header-search input {
    border: none; background: transparent; width: 100%;
    font-size: 0.9rem; color: #0f172a; outline: none; font-weight: 500;
}
.search-shortcut {
    background: #e2e8f0; color: #64748b; font-size: 0.7rem; font-weight: 700;
    padding: 3px 6px; border-radius: 6px; letter-spacing: 0.5px;
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-icon-btn { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 50%; width: 42px; height: 42px; display: flex; justify-content: center; align-items: center; color: #64748b; cursor: pointer; transition: 0.3s; }
.header-icon-btn:hover { background: #ffffff; color: var(--accent-color, #2563eb); border-color: var(--accent-color, #2563eb); }

.header-profile { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px; border-radius: 50px; transition: 0.2s; }
.header-profile:hover { background: #f8fafc; }
.header-profile img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.profile-info { display: flex; flex-direction: column; }
.profile-name { font-size: 0.9rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.profile-email { font-size: 0.75rem; color: #64748b; font-weight: 500; }

/* ==========================================================================
   PAGE TITLE AREA (O Título Grande e Botões)
   ========================================================================== */
.page-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.page-title { margin: 0; font-size: 2rem; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.page-subtitle { color: #64748b; margin: 6px 0 0 0; font-weight: 500; font-size: 0.95rem; }

.page-actions { display: flex; align-items: center; gap: 12px; }

/* Responsividade do Topo */
/* ==========================================================================
   RESPONSIVIDADE PREMIUM DO TOPO (NINO OS MOBILE - TUDO NA MESMA LINHA)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. App Header - TUDO NA MESMA LINHA MÁGICA */
    .app-header { 
        flex-direction: row !important; 
        flex-wrap: nowrap !important; /* Proíbe a quebra de linha */
        gap: 12px !important; 
        align-items: center !important;
        padding: 10px 0 20px 0 !important; 
    }
    
    /* A Busca "suga" todo o espaço que sobrar no meio */
    .header-search { 
        flex: 1 !important; 
        width: auto !important; 
        max-width: none !important;
        min-width: 0 !important; /* Essencial para a barra encolher sem quebrar a tela */
        padding: 10px 15px 10px 42px !important; 
        background-position: 14px center !important;
    }
    
    /* Esconde o atalho ⌘K no celular (é inútil sem teclado) */
    .search-shortcut { display: none !important; }
    
    /* Ações (Sino e Perfil) blindadas à direita */
    .header-actions { 
        width: auto !important; 
        gap: 12px !important; 
        flex-shrink: 0 !important; /* Impede que o Sino e a Foto sejam esmagados */
    }

    /* Esconde o Nome e Email do usuário, deixa SÓ a Foto redonda */
    .profile-info { display: none !important; }
    
    /* Ajusta o tamanho da foto e do sino para ficarem alinhados */
    .header-profile { padding: 0 !important; background: transparent !important; }
    .header-profile img { width: 42px !important; height: 42px !important; }
    .header-icon-btn { width: 42px !important; height: 42px !important; }

    /* 2. Área do Título e Botões de Ação (Mantém-se empilhado para facilitar o clique) */
    .page-title-area { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 15px !important; 
        margin-bottom: 25px !important;
    }
    
    .page-actions { 
        width: 100% !important; 
        display: flex !important; 
        flex-wrap: wrap !important; 
        gap: 10px !important; 
    }
    
    /* Botões Grandes na parte de baixo */
    .page-actions button, 
    .page-actions a, 
    .page-actions .btn-nino, 
    .page-actions .btn-primary, 
    .page-actions .btn-outline { 
        flex: 1 !important; 
        min-width: 140px !important; 
        justify-content: center !important; 
        text-align: center !important;
    }
}

/* ==========================================================================
   MENU DE NOTIFICAÇÕES (SINO NO TOPO)
   ========================================================================== */
.notif-wrapper { position: relative; }

.notif-badge {
    position: absolute;
    top: -2px; right: -2px;
    background: #ef4444; color: #ffffff;
    font-size: 0.65rem; font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #ffffff; box-shadow: 0 2px 5px rgba(239,68,68,0.4);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-dropdown {
    position: absolute; top: calc(100% + 15px); right: -10px;
    width: 340px; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999; overflow: hidden;
}

.notif-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* A Setinha que aponta para cima no menu */
.notif-dropdown::before {
    content: ''; position: absolute; top: -6px; right: 22px;
    width: 12px; height: 12px; background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0,0,0,0.05); border-left: 1px solid rgba(0,0,0,0.05);
    transform: rotate(45deg);
}

.notif-header {
    padding: 15px 20px; border-bottom: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
}
.notif-header h4 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.mark-read { font-size: 0.75rem; color: var(--accent-color, #2563eb); font-weight: 700; cursor: pointer; }
.mark-read:hover { text-decoration: underline; }

.notif-list { max-height: 320px; overflow-y: auto; }
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

.notif-item {
    padding: 16px 20px; display: flex; gap: 15px; border-bottom: 1px solid #f8fafc;
    transition: background 0.2s; cursor: pointer;
}
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: rgba(37, 99, 235, 0.03); }

.notif-icon {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

.notif-content p { margin: 0 0 5px 0; font-size: 0.85rem; color: #334155; line-height: 1.4; }
.notif-content span { font-size: 0.75rem; color: #94a3b8; font-weight: 600; }

.notif-footer { padding: 12px; text-align: center; border-top: 1px solid #f1f5f9; background: #f8fafc; }
.notif-footer a { color: #64748b; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.notif-footer a:hover { color: var(--accent-color, #2563eb); }

@keyframes popIn { 0% { transform: scale(0); } 80% { transform: scale(1.2); } 100% { transform: scale(1); } }


/* ==========================================================================
   NINO OS - LOADER GLOBAL E TOASTS (NOTIFICAÇÕES FLUTUANTES)
   ========================================================================== */

/* 1. LOADER (A Tela de Vidro de Carregamento) */
.global-loader-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: none; /* A MÁGICA QUE ESCONDE ELE POR PADRÃO */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.global-loader-overlay.show {
    display: flex !important;
    opacity: 1 !important;
}

.global-spinner {
    width: 65px; height: 65px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    animation: spin-premium 1s linear infinite;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.global-loader-text {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes spin-premium { 100% { transform: rotate(360deg); } }
@keyframes pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 2. TOASTS (Avisos de Sucesso/Erro Flutuantes) */
.nino-toast-container {
    position: fixed; top: 30px; right: 30px;
    z-index: 999999; display: flex; flex-direction: column; gap: 12px;
    pointer-events: none; /* Para não bloquear cliques na tela */
}

.nino-toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    color: #0f172a; padding: 14px 20px 14px 16px; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 12px;
    font-family: inherit; font-weight: 700; font-size: 0.95rem;
    border: 1px solid rgba(0,0,0,0.05);
    transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nino-toast.show { transform: translateX(0); }

.nino-toast-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff; font-weight: 800;
}

.nino-toast.success .nino-toast-icon { background: #16a34a; box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3); }
.nino-toast.error .nino-toast-icon { background: #ef4444; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
.nino-toast.warning .nino-toast-icon { background: #d97706; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3); }


/* ==========================================================================
   MODAIS GLOBAIS PREMIUM (NINO OS)
   ========================================================================== */
.bliss-modal-overlay { 
    position: fixed !important; 
    inset: 0 !important; 
    background: rgba(15, 23, 42, 0.85); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    z-index: 99999; 
    display: none; /* Escondido por padrão */
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.bliss-modal-card { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    width: 100%; 
    max-width: 600px; 
    max-height: 90vh; 
    border-radius: 24px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.25); 
    border: 1px solid rgba(255,255,255,0.8); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

@keyframes modalSlideUp { 
    from { opacity: 0; transform: translateY(30px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

.bliss-modal-header { 
    padding: 25px 30px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.bliss-modal-header h3 { 
    font-size: 1.3rem; 
    color: #0f172a; 
    font-weight: 800; 
    margin: 0; 
}

.bliss-modal-close { 
    background: #f1f5f9; 
    border: none; 
    font-size: 1.2rem; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    cursor: pointer; 
    color: #64748b; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.bliss-modal-close:hover { 
    color: #ef4444; 
    background: #fee2e2; 
    transform: rotate(90deg); 
}

.bliss-modal-body { 
    padding: 30px; 
    overflow-y: auto; 
}

/* ==========================================================================
   COMPONENTES DE FORMULÁRIO PREMIUM (NINO OS GLOBAL)
   ========================================================================== */

.form-group { margin-bottom: 1.5rem; text-align: left; }

.form-label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    color: #64748b; 
    margin-bottom: 10px; 
    margin-left: 5px; 
    letter-spacing: 0.8px; 
}

.premium-input {
    width: 100%; 
    padding: 16px 18px; 
    font-size: 0.95rem; 
    font-family: inherit;
    color: #0f172a; 
    font-weight: 600; 
    background-color: rgba(248, 250, 252, 0.8);
    border: 2px solid #edf2f7; 
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    box-sizing: border-box; 
    outline: none;
}

.premium-input:focus {
    background-color: #ffffff; 
    border-color: var(--accent-color, #2563eb);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
    transform: translateY(-2px);
}

/* Ajuste para Selects (Seta customizada) */
select.premium-input {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; 
    background-position: right 18px center !important;
    background-size: 16px !important; 
    padding-right: 50px !important;
}

/* ==========================================================================
   UPLOAD DE AVATAR (MODAL)
   ========================================================================== */
.avatar-upload-container { 
    text-align: center; 
    margin-bottom: 30px; 
    display: flex;
    justify-content: center;
}

.avatar-preview-box { 
    width: 110px; 
    height: 110px; 
    background: #f8fafc; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 3px dashed #cbd5e1; 
    overflow: hidden; 
    transition: 0.3s; 
    cursor: pointer;
}

.avatar-preview-box:hover { 
    border-color: var(--accent-color, #2563eb); 
    background: #eff6ff; 
}

.avatar-preview-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.avatar-upload-text { 
    margin-top: 10px;
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--accent-color, #2563eb); 
    cursor: pointer;
}

/* ==========================================================================
   NINO OS - CUSTOM CONFIRM ALERT (ADEUS CAIXA FEIA DO NAVEGADOR)
   ========================================================================== */
.nino-confirm-overlay {
    position: fixed !important; inset: 0 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999999 !important;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nino-confirm-overlay.show { opacity: 1; visibility: visible; }

.nino-confirm-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    width: 90%; max-width: 400px; border-radius: 24px;
    padding: 30px; text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.8);
    transform: translateY(20px) scale(0.95); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nino-confirm-overlay.show .nino-confirm-box { transform: translateY(0) scale(1); }

.nino-confirm-icon {
    width: 65px; height: 65px; background: #fee2e2; color: #ef4444;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 20px auto;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
}

.nino-confirm-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.nino-confirm-text { font-size: 0.95rem; font-weight: 600; color: #64748b; margin-bottom: 25px; line-height: 1.5; }
.nino-confirm-actions { display: flex; gap: 12px; }

.nino-btn-cancel {
    flex: 1; padding: 14px; background: #f1f5f9; color: #475569;
    border-radius: 14px; font-weight: 800; border: none; cursor: pointer; transition: 0.2s; font-size: 0.95rem;
}
.nino-btn-cancel:hover { background: #e2e8f0; color: #0f172a; }

.nino-btn-confirm {
    flex: 1; padding: 14px; background: #ef4444; color: #fff;
    border-radius: 14px; font-weight: 800; border: none; cursor: pointer; transition: 0.2s; font-size: 0.95rem;
}
.nino-btn-confirm:hover { background: #dc2626; box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3); transform: translateY(-2px); }

/* ==========================================================================
   NINO OS - CURSOR CUSTOMIZADO SEMPRE NO TOPO
   ========================================================================== */
.nino-cursor-dot, 
.nino-cursor-ring {
    z-index: 99999999 !important; /* Um 9 a mais para ficar acima do modal! */
    pointer-events: none !important; /* Garante que o cursor não bloqueie os cliques */
}

/* ==========================================================================
   NINO OS - BOTÃO DE CANCELAR (MODAIS)
   ========================================================================== */
.btn-modal-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}