/* CSS DA INTERFACE WEB - CRIPTOBINANCEGRID */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-warning: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* UTILS */
.hidden { display: none !important; }
.mt-4 { margin-top: 1.5rem; }
.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--accent-red) !important; }
.text-warning { color: var(--accent-warning) !important; }
.text-muted { color: var(--text-muted); }

/* TELA DE LOGIN & MODAIS FLUTUANTES */
.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding: 2rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
    box-sizing: border-box;
    overflow: hidden;
}

.login-card form {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar suave para o Modal e Overlay */
.login-card::-webkit-scrollbar,
.login-card form::-webkit-scrollbar,
.login-overlay::-webkit-scrollbar,
#settings-modal #settings-form::-webkit-scrollbar,
#settings-modal .table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.login-card::-webkit-scrollbar-track,
.login-card form::-webkit-scrollbar-track,
.login-overlay::-webkit-scrollbar-track,
#settings-modal #settings-form::-webkit-scrollbar-track,
#settings-modal .table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}
.login-card::-webkit-scrollbar-thumb,
.login-card form::-webkit-scrollbar-thumb,
.login-overlay::-webkit-scrollbar-thumb,
#settings-modal #settings-form::-webkit-scrollbar-thumb,
#settings-modal .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 8px;
}
.login-card::-webkit-scrollbar-thumb:hover,
.login-card form::-webkit-scrollbar-thumb:hover,
.login-overlay::-webkit-scrollbar-thumb:hover,
#settings-modal #settings-form::-webkit-scrollbar-thumb:hover,
#settings-modal .table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}

/* ESTILOS DE ROLAGEM 100% GARANTIDA PARA O MODAL DE CONFIGURAÇÕES */
#settings-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(11, 15, 25, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 99999 !important;
    display: block !important;
    overflow-y: scroll !important;
    padding: 2.5rem 1rem 4rem 1rem !important;
    -webkit-overflow-scrolling: touch !important;
}

#settings-modal .login-card {
    margin: 0 auto !important;
    max-width: 860px !important;
    width: 95% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    overflow: visible !important;
    text-align: left !important;
    padding: 1.75rem 2rem !important;
    box-sizing: border-box !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7) !important;
}

#settings-modal .panel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.85rem !important;
    border-bottom: 1px solid var(--bg-card-border) !important;
}

#settings-modal #settings-form {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

#settings-modal .form-group {
    margin-bottom: 1.25rem !important;
}

#settings-modal .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    margin-top: 0.5rem !important;
}

#settings-modal .btn-primary[type="submit"] {
    width: 100% !important;
    margin-top: 1.5rem !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 1rem !important;
}

.brand-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brand-badge .bot-icon {
    font-size: 2rem;
}

.brand-badge h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.login-subtext {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input, .form-inline input, .form-inline select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-inline input:focus, .form-inline select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.password-wrapper {
    position: relative;
}

.btn-eye {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.error-banner {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: #fca5a5;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* BOTOES */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.2s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.btn-start-custom {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-start-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-config {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.2));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.btn-config:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(99, 102, 241, 0.4));
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.btn-config:active {
    transform: translateY(0) scale(0.98);
}

.btn-suggest-grid {
    width: 100%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.2));
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-suggest-grid:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.4));
    border-color: #4ade80;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(34, 197, 94, 0.45);
}

.btn-suggest-grid:active {
    transform: translateY(0) scale(0.98);
}

/* BOTOES REDESENHADOS E ESTILIZADOS */
.btn-logout {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.2));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-logout:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(220, 38, 38, 0.45));
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.btn-logout:active {
    transform: translateY(0) scale(0.96);
}

.btn-refresh-logs {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.25));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-refresh-logs:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.45));
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-refresh-logs:hover span {
    display: inline-block;
    animation: spin 0.6s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-refresh-logs:active {
    transform: translateY(0) scale(0.96);
}

.btn-run-bt {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3));
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-run-bt:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(16, 185, 129, 0.5));
    border-color: #4ade80;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.btn-run-bt:active {
    transform: translateY(0) scale(0.96);
}

.btn-action {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.9));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-action:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(99, 102, 241, 0.25));
    border-color: var(--accent-cyan);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(6, 182, 212, 0.3);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.bot-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.ai-opinion-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.2rem;
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 0.93rem;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
}

.ai-opinion-box h1, .ai-opinion-box h2, .ai-opinion-box h3, .ai-opinion-box h4 {
    color: #c084fc;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.ai-opinion-box blockquote {
    background: rgba(234, 179, 8, 0.12);
    border-left: 4px solid #eab308;
    padding: 0.8rem 1.2rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: #fef08a;
    font-weight: 600;
}

.ai-opinion-box strong {
    color: #38bdf8;
    font-weight: 700;
}

.ai-opinion-box ul, .ai-opinion-box ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ai-opinion-box li {
    margin-bottom: 0.5rem;
}

/* CHART WRAPPER */
.chart-wrapper {
    position: relative;
    width: 100%;
    height: 340px !important;
    min-height: 340px !important;
    margin-top: 0.8rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 0.8rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 320px !important;
    min-height: 300px !important;
    display: block !important;
}

/* HEADER & NAV BAR STICKY NO TOPO */
.sticky-header-area {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.top-header {
    background: transparent;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-area h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.badge-vps {
    font-size: 0.7rem;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* NAV TABS */
.main-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem 0;
    border-bottom: 1px solid var(--bg-card-border);
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.tab-btn:hover:not(.active) {
    color: var(--text-main);
}

/* CONTENT CONTAINER */
.content-container {
    padding: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* METRICS GRID */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 12px;
}

.card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.metric-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* PANELS */
.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
}

.form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-inline input, .form-inline select {
    width: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* TABLES & POSITIONS */
.table-wrapper {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--bg-card-border);
    font-weight: 500;
}

table.data-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tag-be {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

/* TERMINAL LOGS */
.terminal-window {
    background: #050811;
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 1.25rem;
    max-height: 450px;
    overflow-y: auto;
}

.terminal-window pre {
    color: #38bdf8;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* RESULT CARDS & GEMINI AUDIT */
.ai-audit-card {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ai-audit-card h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CENTRAL DE NOTIFICAÇÕES & ALERTAS DE ERRO */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.btn-notification {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
}

.btn-notification:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-cyan);
}

.notification-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.notification-dropdown {
    position: absolute;
    right: 0;
    top: 125%;
    width: 380px;
    max-height: 450px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: rgba(30, 41, 59, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.btn-clear {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.4);
}

.notification-list {
    padding: 0.5rem;
    overflow-y: auto;
    max-height: 380px;
}

.notification-item {
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.4);
    border-left: 3px solid #ef4444;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.notification-item.warning {
    border-left-color: #facc15;
}

.notification-item .notif-time {
    font-size: 0.72rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.25rem;
}

.notification-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* SENTINELA DE IA - ALERTAS E SUGESTÕES EM 1-CLIQUE */
.sentinel-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-left: 5px solid #38bdf8;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.sentinel-card.expand-tp {
    border-left-color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.sentinel-card.trigger-be {
    border-left-color: #facc15;
    border-color: rgba(250, 204, 21, 0.4);
}

.sentinel-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.3rem;
}

.sentinel-info p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.btn-sentinel-action {
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: all 0.2s ease;
}

.btn-sentinel-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

@media (max-width: 768px) {
    .top-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .content-container { padding: 1rem; }
    .notification-dropdown { right: -50px; width: 300px; }
    .sentinel-card { flex-direction: column; align-items: flex-start; }
}
