/* ==========================================
   EVIDENCE Platform - CSS Framework
   "DecisÃµes tÃ©cnicas baseadas em sinais observÃ¡veis"
   Technical Design System for Observable Data
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* EVIDENCE Brand Colors - azuis, verdes, preto, laranja/amarelo */
    --primary: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3385d6;
    
    /* Accent Colors - EVIDENCE */
    --accent-green: #00c48c;
    --accent-orange: #ff8c42;
    --accent-yellow: #ffd93d;
    
    /* Semantic Colors */
    --success: #00c48c;
    --warning: #ff8c42;
    --error: #ff5c5c;
    --info: #0066cc;
    
    /* Neutral Scale - Dark Mode Base */
    --gray-50: #f7f8fa;
    --gray-100: #edf0f5;
    --gray-200: #dde2eb;
    --gray-300: #c4cbd8;
    --gray-400: #8f9bb3;
    --gray-500: #6b7894;
    --gray-600: #51627a;
    --gray-700: #3d4f66;
    --gray-800: #2a3649;
    --gray-900: #1a2332;
    --gray-950: #0f1419;
    
    /* Background System */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-tertiary: #edf0f5;
    --bg-dark: #1a2332;
    --bg-darker: #0f1419;
    
    /* Border & Divider */
    --border-color: #dde2eb;
    --border-dark: #2a3649;
    
    /* Text Hierarchy */
    --text-primary: #1a2332;
    --text-secondary: #51627a;
    --text-tertiary: #8f9bb3;
    --text-inverse: #ffffff;
    
    /* New Design System Colors - OKLCH inspired */
    --background: #0a0e1a;
    --foreground: #f2f3f5;
    --card: #151a26;
    --card-foreground: #f2f3f5;
    --border: rgba(255, 255, 255, 0.09);
    --signal: #5dcdff;
    --signal-foreground: #0a1525;
    --muted: #2a3649;
    --muted-foreground: #a3b1cc;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable; /* Fallback gracioso para Safari */
}

/* Touch Optimization for Mobile */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    button, a, .clickable {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===========================================
   SIDEBAR - EVIDENCE DARK MODE
   Sidebar escuro reflete observabilidade tÃ©cnica
   =========================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--bg-dark);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 50;
    border-right: 1px solid var(--border-dark);
}

.sidebar-header {
    padding: 2rem 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-dark);
    background: var(--bg-darker);
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.sidebar-logo svg {
    width: 64px;
    height: 64px;
    color: var(--primary-light);
    filter: drop-shadow(0 4px 12px rgba(51, 133, 214, 0.6));
    flex-shrink: 0;
    animation: float-logo 4s ease-in-out infinite;
}

.sidebar-logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s;
}

.sidebar-link:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-light);
}

.sidebar-link:hover::before {
    height: 24px;
}

.sidebar-link.active {
    background: rgba(0, 102, 204, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link.active::before {
    height: 32px;
}

.sidebar-link i {
    width: 20px;
    font-size: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.5rem;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}

.badge-primary {
    background: rgba(0, 102, 204, 0.2);
    color: var(--primary);
}

.badge-error {
    background: rgba(255, 92, 92, 0.2);
    color: var(--error);
}

.badge-warning {
    background: rgba(255, 140, 66, 0.2);
    color: var(--warning);
}

.badge-success {
    background: rgba(0, 196, 140, 0.2);
    color: var(--success);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.badge-secondary {
    background: rgba(143, 155, 179, 0.2);
    color: #8f9bb3;
}

.badge-warning {
    background: rgba(255, 140, 66, 0.2);
    color: #fbbf24;
}

.badge-primary {
    background: rgba(51, 133, 214, 0.25);
    color: #3385d6;
}

/* Badges de status das validações - tamanho padronizado */
.badge.st-mitigating,
.badge.st-triage,
.badge.st-open,
.badge.st-resolved {
    min-width: 90px;
}

.sidebar-footer {
    position: relative;
    padding: 1.5rem;
    border-top: 1px solid var(--border-dark);
    background: var(--bg-darker);
}

.evidence-tagline {
    font-size: 9px;
    color: var(--gray-500);
    text-align: center;
    padding: 0.875rem 1rem;
    line-height: 1.5;
    font-style: italic;
    border-top: 1px solid var(--border-dark);
    margin-top: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.user-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    border-radius: 0.5rem;
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.user-card:hover {
    background: rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.3);
}

.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-green);
    border: 2px solid var(--bg-dark);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-inverse);
}

.user-role {
    font-size: 11px;
    color: var(--gray-400);
}

.user-card-arrow {
    font-size: 12px;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.user-card.active .user-card-arrow {
    transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    border-radius: 0.5rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 150;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.user-menu-item:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-light);
}

.user-menu-item i {
    width: 20px;
    font-size: 16px;
}

.user-menu-item.logout-item {
    color: var(--error);
}

.user-menu-item.logout-item:hover {
    background: rgba(255, 92, 92, 0.1);
    color: var(--error);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-dark);
    margin: 0.25rem 0;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    width: calc(100% - 280px);
}

/* ===========================================
   HEADER
   =========================================== */

.header {
    height: 72px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Menu Toggle Button (Mobile) */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.menu-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.search-container {
    flex: 1;
    max-width: 600px;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.625rem;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.icon-button:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--error);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 92, 92, 0.4);
}

/* ===========================================
   PAGE CONTENT
   =========================================== */

.page-content {
    padding: 2rem;
    min-height: calc(100vh - 72px);
    background: var(--bg-secondary);
    max-width: 100%;
    box-sizing: border-box;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, #1a1f36 0%, #0f172a 50%, #1e293b 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

/* System Pulse - Health Indicator */
.system-pulse {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.pulse-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00ff88;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.6),
        0 0 40px rgba(0, 255, 136, 0.3);
}

.pulse-indicator::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid #00ff88;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-info {
    display: flex;
    flex-direction: column;
}

.pulse-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.pulse-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

/* ===========================================
   METRICS - EVIDENCE DATA SIGNALS
   MÃ©tricas sÃ£o evidÃªncias, nÃ£o opiniÃµes
   =========================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-left: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, currentColor 0%, transparent 100%);
    opacity: 0.8;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.metric-card:hover::after {
    opacity: 1;
}

.metric-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Cores de borda para cada card */
.metric-card.metric-bugs {
    border-left-color: #dc3545;
}

.metric-card.metric-bugs::before {
    display: none;
}

.metric-card.metric-automations {
    border-left-color: #0066cc;
}

.metric-card.metric-automations::before {
    display: none;
}

.metric-card.metric-tickets {
    border-left-color: #ff8c42;
}

.metric-card.metric-tickets::before {
    display: none;
}

.metric-card.metric-success {
    border-left-color: #00c48c;
}

.metric-card.metric-success::before {
    display: none;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.metric-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-badge.critical {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.metric-badge.running {
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.metric-badge.warning {
    background: rgba(255, 140, 66, 0.1);
    color: #ff8c42;
    border: 1px solid rgba(255, 140, 66, 0.2);
}

.metric-badge.success {
    background: rgba(0, 196, 140, 0.1);
    color: #00c48c;
    border: 1px solid rgba(0, 196, 140, 0.2);
}

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-trend {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-trend.up {
    color: var(--success);
}

.metric-trend.down {
    color: var(--success);
}

/* ===========================================
   ENGINEERING METRICS - DORA & OBSERVABILITY
   =========================================== */

.engineering-metrics {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--error);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-indicator::before {
    content: 'â—';
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.dora-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.dora-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 1) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.dora-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3385d6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s;
}

.dora-card:hover::before {
    opacity: 1;
}

.dora-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 25px 60px rgba(59, 130, 246, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.dora-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.dora-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.dora-unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.dora-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.dora-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dora-status.elite {
    background: linear-gradient(135deg, #00c48c 0%, #059669 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(0, 196, 140, 0.4),
        0 0 20px rgba(0, 196, 140, 0.2);
}

.dora-status.elite::before {
    content: 'â˜…';
    font-size: 0.75rem;
}

.dora-status.high {
    background: linear-gradient(135deg, #3385d6 0%, #2563eb 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(51, 133, 214, 0.4),
        0 0 20px rgba(51, 133, 214, 0.2);
}

/* ===========================================
   OBSERVABILITY PAGE
   =========================================== */

.observability-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.obs-metric-card {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s;
}

.obs-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
}

.obs-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.obs-metric-info {
    flex: 1;
}

.obs-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.obs-metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.obs-metric-trend {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.obs-metric-trend.up {
    color: var(--success);
}

.obs-metric-trend.down {
    color: var(--success);
}

.observability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.obs-section {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
}

.obs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.obs-section-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.refresh-indicator {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.slo-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.slo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.slo-info {
    flex: 1;
}

.slo-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.slo-target {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.slo-status {
    flex: 1;
}

.slo-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.slo-value.success {
    color: var(--success);
}

.slo-value.warning {
    color: var(--warning);
}

.slo-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.slo-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
}

.event-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.event-icon.success {
    background: rgba(0, 196, 140, 0.15);
    color: var(--success);
}

.event-icon.warning {
    background: rgba(255, 140, 66, 0.15);
    color: var(--warning);
}

.event-icon.info {
    background: rgba(0, 102, 204, 0.15);
    color: var(--accent-primary);
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.event-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.services-health {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.service-status {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-status.healthy {
    color: var(--success);
}

.service-status.warning {
    color: var(--warning);
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.service-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===========================================
   SETTINGS PAGE
   =========================================== */

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.settings-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.settings-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.integration-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.integration-card.active {
    border-color: var(--success);
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.integration-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integration-icon img {
    width: 32px;
    height: 32px;
}

.integration-info {
    flex: 1;
}

.integration-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.integration-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.integration-status.connected {
    color: var(--success);
}

.integration-status.disconnected {
    color: var(--text-secondary);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.setting-info {
    flex: 1;
}

.setting-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.setting-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-400);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.member-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.member-status.active {
    color: var(--success);
}

.metric-card.metric-bugs::before {
    background: var(--error);
}

.metric-card.metric-automations::before {
    background: var(--info);
}

.metric-card.metric-tickets::before {
    background: var(--warning);
}

.metric-card.metric-success::before {
    background: var(--accent-green);
}

.metric-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 8px;
    transition: all 0.3s;
}

.metric-card:hover .metric-icon {
    transform: scale(1.05);
}

.metric-value {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 0, 0, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
    position: relative;
}

.metric-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-info-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.metric-bugs .metric-info-btn {
    background: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.25);
}

.metric-bugs .metric-info-btn:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.metric-automations .metric-info-btn {
    background: #0066cc;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.25);
}

.metric-automations .metric-info-btn:hover {
    background: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.metric-tickets .metric-info-btn {
    background: #ff8c42;
    box-shadow: 0 2px 4px rgba(255, 140, 66, 0.25);
}

.metric-tickets .metric-info-btn:hover {
    background: #ff6b1a;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

.metric-success .metric-info-btn {
    background: #00c48c;
    box-shadow: 0 2px 4px rgba(0, 196, 140, 0.25);
}

.metric-success .metric-info-btn:hover {
    background: #00a575;
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.4);
}

.metric-info-btn:hover {
    transform: scale(1.1);
}

.metric-info-btn:active {
    transform: scale(1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Metric Info Popup Styles */
.metric-info-popup {
    padding: 0.5rem 0;
}

.metric-description {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.metric-details {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.metric-details h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.metric-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.metric-details p:last-child {
    margin-bottom: 0;
}

.metric-action {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 196, 140, 0.08) 0%, rgba(0, 196, 140, 0.03) 100%);
    border-left: 3px solid var(--success);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.metric-action strong {
    color: var(--success);
}

/* ===========================================
   CHARTS & VISUALIZATIONS
   =========================================== */

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

.chart-card.modern-card {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
}

.chart-header {
    margin-bottom: 2rem;
}

.chart-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Donut Chart Styles */
.priority-donut-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.donut-chart {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.donut-segment {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.donut-total-label {
    font-size: 0.875rem;
    font-weight: 500;
    fill: var(--text-secondary);
}

.donut-total-value {
    font-size: 2rem;
    font-weight: 700;
    fill: var(--text-primary);
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.legend-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.legend-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Executive Priority Chart - Modern & Clean */
.priority-area-chart {
    padding: 0.5rem 0;
}

.executive-priority-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exec-priority-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.exec-priority-row:last-child {
    border-bottom: none;
}

.exec-priority-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exec-priority-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.exec-priority-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.exec-priority-trend {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
}

.trend-positive {
    color: #00c48c;
    background: rgba(0, 196, 140, 0.12);
}

.trend-negative {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.12);
}

.exec-priority-bar-wrapper {
    width: 100%;
}

.exec-priority-bar-bg {
    height: 36px;
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f9 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.exec-priority-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 0 20px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.05);
}

.exec-priority-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
}

.exec-priority-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.exec-priority-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    min-width: 90px;
}

.exec-priority-count {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.exec-priority-percent {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Executive Status Cards - Modern Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem 0;
}

.exec-status-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.exec-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, currentColor 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.exec-status-card:hover::before {
    opacity: 1;
}

.exec-status-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.exec-status-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 20px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.exec-status-card:hover .exec-status-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.15),
        0 0 30px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.exec-status-icon-wrapper i {
    font-size: 1.625rem;
}

.exec-status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.exec-status-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.exec-status-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 0, 0, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.exec-status-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.exec-status-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-top: -0.125rem;
}

.exec-status-desc {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
}

.exec-status-progress-bg {
    height: 6px;
    background: #f5f6f8;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.125rem;
}

.exec-status-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.08);
    flex-shrink: 0;
}

.status-info {
    flex: 1;
}

.status-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.status-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.priority-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.priority-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.priority-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.priority-name {
    font-weight: 600;
    color: var(--text-primary);
}

.priority-count {
    font-weight: 700;
    color: var(--text-secondary);
}

.priority-progress {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 9999px;
    overflow: hidden;
}

.priority-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s;
}

.priority-fill.critical {
    background: var(--error);
}

.priority-fill.high {
    background: var(--warning);
}

.priority-fill.medium {
    background: var(--info);
}

.priority-fill.low {
    background: var(--gray-400);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.status-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.status-count {
    font-weight: 700;
    color: var(--text-primary);
}

/* ===========================================
   CARDS - BUGS, AUTOMATIONS, TICKETS
   =========================================== */

.bugs-grid,
.automations-grid,
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
}

.bug-card,
.automation-card,
.ticket-card {
    background: var(--bg-primary);
    border-radius: 0.625rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.bug-card:hover,
.automation-card:hover,
.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.bug-header,
.automation-header,
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bug-id,
.ticket-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
}

.bug-title,
.automation-name,
.ticket-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
}

.bug-description,
.automation-description,
.ticket-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.bug-footer,
.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.bug-environment {
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.ticket-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.automation-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1.25rem 0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.automation-actions {
    display: flex;
    gap: 0.5rem;
}

.automation-framework {
    padding: 0.25rem 0.625rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.375rem;
}

/* Automation badges - melhorados */
.automation-framework-badge {
    padding: 0.375rem 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-primary);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.automation-status-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.automation-status-badge.status-passed {
    background: rgba(0, 196, 140, 0.15);
    color: #00a876;
    border: 1px solid rgba(0, 196, 140, 0.3);
}

.automation-status-badge.status-failed {
    background: rgba(255, 92, 92, 0.15);
    color: #e63946;
    border: 1px solid rgba(255, 92, 92, 0.3);
}

.automation-status-badge.status-running {
    background: rgba(255, 140, 66, 0.15);
    color: #ff8c42;
    border: 1px solid rgba(255, 140, 66, 0.3);
}

/* ===========================================
   STATUS BADGES - EVIDENCE SIGNALS
   =========================================== */

.status-badge,
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-badge::before,
.priority-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-open {
    background: rgba(0, 102, 204, 0.1);
    color: var(--info);
}

.status-in_progress {
    background: rgba(255, 140, 66, 0.1);
    color: var(--warning);
}

.status-resolved {
    background: rgba(0, 196, 140, 0.1);
    color: var(--accent-green);
}

.status-closed {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-600);
}

.status-passed {
    background: rgba(0, 196, 140, 0.1);
    color: var(--accent-green);
}

.status-failed {
    background: rgba(255, 92, 92, 0.1);
    color: var(--error);
}

.status-running {
    background: rgba(0, 102, 204, 0.1);
    color: var(--info);
}

.priority-critical {
    background: rgba(255, 92, 92, 0.1);
    color: var(--error);
}

.priority-high {
    background: rgba(255, 140, 66, 0.1);
    color: var(--warning);
}

.priority-medium {
    background: rgba(0, 102, 204, 0.1);
    color: var(--info);
}

.priority-low {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray-600);
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 204, 0.05);
    color: var(--primary);
}

.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background: #00a877;
    box-shadow: 0 4px 12px rgba(0, 196, 140, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 13px;
}

/* ===========================================
   FILTERS
   =========================================== */

.filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.625rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
    flex: 1;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===========================================
   MODAL
   =========================================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 25, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* Modal maior para demo */
.modal-content:has(.demo-execution-modal) {
    max-width: 700px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

/* ===========================================
   FORMS
   =========================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */

.toast-container {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.toast {
    background: var(--bg-primary);
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 320px;
    max-width: 420px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.toast.toast-success {
    border-left-color: var(--accent-green);
}

.toast.toast-success .toast-icon {
    background: rgba(0, 196, 140, 0.15);
    color: var(--accent-green);
}

.toast.toast-error {
    border-left-color: var(--error);
}

.toast.toast-error .toast-icon {
    background: rgba(255, 92, 92, 0.15);
    color: var(--error);
}

.toast.toast-warning {
    border-left-color: var(--warning);
}

.toast.toast-warning .toast-icon {
    background: rgba(255, 140, 66, 0.15);
    color: var(--warning);
}

.toast.toast-info {
    border-left-color: var(--info);
}

.toast.toast-info .toast-icon {
    background: rgba(0, 102, 204, 0.15);
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
}

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

/* FASE 3: Toast para notificações em tempo real (WebSocket) */
.toast.toast-realtime {
    border-left-color: var(--accent-orange);
    animation: slideIn 0.3s ease-out, pulse 2s infinite;
}

.toast.toast-realtime .toast-icon {
    background: rgba(255, 140, 66, 0.2);
    color: var(--accent-orange);
    animation: pulse-icon 2s infinite;
}

.toast.toast-critical {
    border-left-color: var(--error);
    background: linear-gradient(135deg, rgba(255, 92, 92, 0.05) 0%, var(--bg-primary) 100%);
    animation: slideIn 0.3s ease-out, shake 0.5s;
}

.toast.toast-critical .toast-icon {
    background: rgba(255, 92, 92, 0.2);
    color: var(--error);
    animation: pulse-icon 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 140, 66, 0.3);
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===========================================
   NOTIFICATION DROPDOWN
   =========================================== */

.notification-container {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 380px;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--border-color);
    border: none;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.notification-item:hover {
    background: var(--bg-secondary);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notification-item.unread:hover {
    background: rgba(59, 130, 246, 0.08);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.notification-icon.bug {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.notification-icon.automation {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.notification-icon.ticket {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #ea580c;
}

.notification-icon.system {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.375rem;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 0.375rem;
}

.notification-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
}

.notification-clear {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 11px;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.notification-clear:hover {
    background: rgba(59, 130, 246, 0.1);
}

.notification-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.notification-footer a {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* ===========================================
   ACTIVITY TIMELINE
   =========================================== */

.recent-activity {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: none;
}

.recent-activity h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.activity-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    color: var(--accent-primary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.activity-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ===========================================
   DETAILS
   =========================================== */

.bug-details,
.ticket-details,
.automation-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row strong {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-actions {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
/* ===========================================
   RESPONSIVE DESIGN
   Mobile First Approach
   =========================================== */

/* Tablet e pequenos desktops (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .page-content {
        padding: 1.5rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .system-pulse {
        width: 100%;
        justify-content: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .priority-donut-container {
        flex-direction: column;
        gap: 2rem;
    }

    .donut-chart {
        width: 180px;
        height: 180px;
    }

    .dora-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .observability-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .observability-grid {
        grid-template-columns: 1fr;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .services-health {
        grid-template-columns: 1fr;
    }
}

/* Mobile (atÃ© 768px) */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .sidebar-header {
        padding: 1.5rem 1.25rem;
    }
    
    .sidebar-logo svg {
        width: 36px;
        height: 36px;
    }
    
    .sidebar-logo h1 {
        font-size: 18px;
    }
    
    .sidebar-nav {
        padding: 1.25rem;
    }
    
    .sidebar-link {
        padding: 0.75rem 1rem;
        font-size: 13px;
    }
    
    .sidebar-link i {
        font-size: 16px;
    }
    
    .sidebar-footer {
        padding: 1.25rem;
    }
    
    .user-card {
        padding: 0.75rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .user-role {
        font-size: 10px;
    }
    
    .evidence-tagline {
        font-size: 8px;
        padding: 0.75rem 0.875rem;
    }
    
    .header {
        padding: 0 1rem;
        height: 64px;
    }

    .search-container {
        flex: 1;
        max-width: none;
    }

    .search-input {
        font-size: 0.875rem;
        padding: 0.625rem 1rem 0.625rem 2.5rem;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .notification-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .page-content {
        padding: 1rem;
        min-height: calc(100vh - 64px);
    }

    .page-header {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .page-header p {
        font-size: 0.8125rem;
    }

    .system-pulse {
        padding: 0.875rem 1.25rem;
    }

    .pulse-label {
        font-size: 0.6875rem;
    }

    .pulse-value {
        font-size: 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .metric-card {
        padding: 1.5rem;
    }

    .metric-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .metric-value {
        font-size: 2.25rem;
    }

    .metric-label {
        font-size: 0.875rem;
    }

    .metric-trend {
        font-size: 0.6875rem;
    }

    .engineering-metrics {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.125rem;
    }

    .dora-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dora-card {
        padding: 1.5rem;
    }

    .dora-value {
        font-size: 1.75rem;
    }

    .dashboard-charts {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .chart-card {
        padding: 1.5rem;
    }

    .chart-card h3 {
        font-size: 1.125rem;
    }

    .chart-subtitle {
        font-size: 0.8125rem;
    }

    .donut-chart {
        width: 160px;
        height: 160px;
    }

    .donut-total-value {
        font-size: 1.75rem;
    }

    .legend-item {
        padding: 0.625rem;
    }

    .legend-label {
        font-size: 0.875rem;
    }

    .legend-value {
        font-size: 1rem;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .status-metric-card {
        padding: 1.25rem;
    }

    .status-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .status-value {
        font-size: 1.75rem;
    }

    .recent-activity {
        padding: 1.5rem;
    }

    .recent-activity h3 {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }

    .activity-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-item:hover {
        transform: none;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Observability */
    .observability-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .obs-metric-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .obs-metric-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .obs-metric-value {
        font-size: 1.75rem;
    }

    .obs-section {
        padding: 1.25rem;
    }

    .slo-item {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Settings */
    .settings-section {
        padding: 1.5rem;
    }

    .integrations-grid {
        gap: 1rem;
    }

    .integration-card {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .setting-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .team-member {
        padding: 0.875rem;
    }

    /* Automations */
    .automations-grid {
        grid-template-columns: 1fr !important;
    }

    .automation-card {
        padding: 1.25rem;
    }

    .automation-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Bugs & Tickets */
    .bugs-grid,
    .tickets-grid {
        grid-template-columns: 1fr !important;
    }

    .filters-section {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }
}

/* Mobile pequeno (atÃ© 480px) */
@media (max-width: 480px) {
    .search-container {
        display: none;
    }

    .notification-dropdown {
        width: calc(100vw - 1.5rem);
        right: 0.75rem;
        left: 0.75rem;
    }

    .page-header {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.125rem;
    }

    .metric-card {
        padding: 1.25rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .metric-badge {
        font-size: 0.5625rem;
        padding: 0.25rem 0.5rem;
    }

    .dora-card {
        padding: 1.25rem;
    }

    .dora-value {
        font-size: 1.5rem;
    }

    .chart-card {
        padding: 1.25rem;
    }

    .donut-chart {
        width: 140px;
        height: 140px;
    }

    .modal-content {
        width: 95%;
        max-width: 95vw;
        max-height: 90vh;
        padding: 1.25rem;
    }

    .modal-header h2 {
        font-size: 1.125rem;
    }

    .toast-container {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
    }

    .toast {
        padding: 0.875rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-control {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .page-header {
        padding: 1rem 1.5rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dora-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large desktops (1440px+) */
@media (min-width: 1440px) {
    .page-content {
        max-width: 1600px;
        margin: 0 auto;
        padding: 2.5rem 3rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .dashboard-charts {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .dora-metrics {
        grid-template-columns: repeat(4, 1fr);
    }

    .observability-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print styles */
@media print {
    .sidebar,
    .header,
    .notification-dropdown,
    .btn,
    .modal {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .page-content {
        padding: 0;
    }

    .metric-card,
    .chart-card,
    .dora-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .toast {
        min-width: auto;
        left: 1rem;
    }
}
/* ===========================================
   EXECUTIVE INSIGHTS SECTION - AI-Powered
   =========================================== */

.insights-section {
    margin: 3rem 0;
}

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

.insights-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.insights-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.insights-badge::before {
    content: 'âœ¨';
    font-size: 0.875rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 1) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
}

.insight-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.insight-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.insight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2);
}

.insight-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.insight-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.insight-metrics {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.insight-metric {
    flex: 1;
}

.insight-metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #8b5cf6;
    line-height: 1;
    margin-bottom: 0.375rem;
    letter-spacing: -1px;
}

.insight-metric-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.insight-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.insight-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.insight-action i {
    font-size: 0.875rem;
}

/* ===========================================
   ENHANCED TYPOGRAPHY HIERARCHY
   =========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 2rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #0066cc 0%, #3385d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: linear-gradient(135deg, #00c48c 0%, #00c48c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-premium {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Headers Premium */
.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* ===========================================
   JIRA DASHBOARD STYLES
   =========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-container {
    position: relative;
    height: 300px;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(143, 155, 179, 0.1);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(6, 182, 212, 0.05);
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.chart-container canvas {
    max-height: 100%;
    filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.15));
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* ===========================================
   FILTROS E BOTÃ•ES SQUAD
   =========================================== */

.btn-filter {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-filter.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* TendÃªncias nos Cards */
.stat-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.positive {
    color: #00c48c;
}

.stat-trend.negative {
    color: #ff5c5c;
}

/* Cards de Impacto */
.impact-card {
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================
   JIRA DASHBOARD - EXACT STYLE FROM IMAGE
   ========================================== */

/* Filter Chip */
.filter-chip {
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-chip:hover {
    background: #334155;
    border-color: #475569;
}

.filter-chip.active {
    background: #1e40af;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.filter-chip .chip-count {
    background: #3385d6;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Stat Icon Styles */
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

/* Success Card for Entregas Atrasadas */
.success-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00c48c 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: #8f9bb3;
    font-size: 0.875rem;
}

/* Stat Card Enhancements */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #8f9bb3;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-subtitle {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Section Headers */
.section-title {
    margin: 2rem 0 0.5rem 0;
    font-size: 1.125rem;
    color: #e2e8f0;
    font-weight: 600;
}

.section-subtitle {
    color: #8f9bb3;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Impact Cards Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.impact-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.impact-blocked {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.impact-delayed {
    background: linear-gradient(135deg, #ff8c42 0%, #ea580c 100%);
}

.impact-attention {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: white;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.impact-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.impact-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tabela Dark Mode - Jira Dashboard */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    background: #1e293b;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    color: #c4cbd8;
}

.table-container thead {
    background: #0f172a;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.table-container thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-container tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.table-container tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.3);
}

.table-container tbody tr:hover {
    background: rgba(51, 133, 214, 0.08);
}

.table-container tbody td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #c4cbd8;
}

.table-container tbody td:first-child {
    font-weight: 600;
}

/* =============================================================================
   EVIDENCE — Enterprise Light Tokens & Sidebar Refinement
   Light-first design tokens shared across modules.
   ============================================================================= */
:root {
    --ev-surface:        #ffffff;
    --ev-surface-soft:   #f7f9fc;
    --ev-surface-muted:  #f1f4f9;
    --ev-bg-page:        #f5f7fb;
    --ev-border:         #e3e8f0;
    --ev-border-soft:    #eef1f6;
    --ev-text:           #0f1b2d;
    --ev-text-soft:      #45526b;
    --ev-text-muted:     #6b7891;
    --ev-text-faint:     #94a0b5;
    --ev-primary:        #1f3a8a;
    --ev-primary-soft:   #e6ecf8;
    --ev-accent:         #2563eb;
    --ev-success:        #047857;
    --ev-success-soft:   #e6f4ee;
    --ev-warning:        #b45309;
    --ev-warning-soft:   #fdf2e1;
    --ev-danger:         #b91c1c;
    --ev-danger-soft:    #fbe9e9;
    --ev-info:           #0e7490;
    --ev-info-soft:      #e1f1f5;
    --ev-shadow-sm:      0 1px 2px rgba(15, 27, 45, 0.04);
    --ev-shadow-md:      0 4px 14px rgba(15, 27, 45, 0.06);
    --ev-radius:         12px;
    --ev-radius-sm:      8px;
}

body { background: var(--ev-bg-page); color: var(--ev-text); }

/* Sidebar refinement — sóbria, institucional, próxima de Linear/Stripe */
.sidebar {
    background: #0e1a2c;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
}
.sidebar-header { background: #0e1a2c; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-logo i { box-shadow: none; }
.sidebar-logo h1 { font-size: 16px; letter-spacing: 1.2px; font-weight: 600; }
.sidebar-link {
    padding: 0.6rem 0.95rem;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #b6c0d2;
    border-radius: 8px;
}
.sidebar-link i { font-size: 15px; opacity: 0.8; }
.sidebar-link:hover { background: rgba(255,255,255,0.04); color: #ffffff; }
.sidebar-link:hover::before { display: none; }
.sidebar-link.active {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font-weight: 600;
}
.sidebar-link.active::before { display: none; }
.sidebar .badge {
    background: rgba(255,255,255,0.08);
    color: #cdd5e2;
    font-size: 10px;
    font-weight: 600;
    height: 18px;
    min-width: 18px;
    padding: 0 0.45rem;
}

/* =============================================================================
   Layout-base reutilizável (ev-*) — Cabeçalho, resumo, seções
   ============================================================================= */
.ev-page { display: flex; flex-direction: column; gap: 1.5rem; }

.ev-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow-sm);
}
.ev-page-header__title {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.ev-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ev-text-muted);
    text-transform: uppercase;
}
.ev-page-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ev-text);
    letter-spacing: -0.01em;
    margin: 0;
}
.ev-page-header p {
    color: var(--ev-text-soft);
    font-size: 0.9rem;
    max-width: 640px;
    margin: 0;
}
.ev-page-header__aside {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ev-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--ev-border);
    background: var(--ev-surface-soft);
    color: var(--ev-text-soft);
}
.ev-status__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ev-text-faint);
}
.ev-status.is-stable    { background: var(--ev-success-soft); color: var(--ev-success); border-color: rgba(4,120,87,0.18); }
.ev-status.is-stable .ev-status__dot { background: var(--ev-success); }
.ev-status.is-attention { background: var(--ev-warning-soft); color: var(--ev-warning); border-color: rgba(180,83,9,0.18); }
.ev-status.is-attention .ev-status__dot { background: var(--ev-warning); }
.ev-status.is-degraded  { background: var(--ev-danger-soft); color: var(--ev-danger); border-color: rgba(185,28,28,0.18); }
.ev-status.is-degraded .ev-status__dot { background: var(--ev-danger); }

.ev-btn {
    border: 1px solid var(--ev-border);
    background: var(--ev-surface);
    color: var(--ev-text);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.15s ease;
}
.ev-btn:hover { border-color: #c9d2e2; background: var(--ev-surface-soft); }
.ev-btn--primary { background: var(--ev-primary); color: #fff; border-color: var(--ev-primary); }
.ev-btn--primary:hover { background: #18306e; border-color: #18306e; }

/* Linha de resumo (cartões compactos) */
.ev-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.ev-summary-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: var(--ev-shadow-sm);
}
.ev-summary-card__head {
    display: flex; justify-content: space-between; align-items: center;
}
.ev-summary-card__kicker {
    font-size: 11px;
    font-weight: 600;
    color: var(--ev-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.ev-summary-card__trend {
    font-size: 12px;
    color: var(--ev-text-muted);
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.ev-summary-card__trend.is-up   { color: var(--ev-success); }
.ev-summary-card__trend.is-down { color: var(--ev-danger); }
.ev-summary-card__value {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--ev-text);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.ev-summary-card__context {
    font-size: 13px;
    color: var(--ev-text-soft);
}
.ev-summary-card__hint {
    font-size: 12px;
    color: var(--ev-text-muted);
    border-top: 1px solid var(--ev-border-soft);
    padding-top: 0.45rem;
    margin-top: 0.1rem;
}
.ev-summary-card__alert {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    font-size: 12px;
    background: var(--ev-danger-soft);
    color: var(--ev-danger);
}
.ev-summary-card.tone-warning .ev-summary-card__alert { background: var(--ev-warning-soft); color: var(--ev-warning); }
.ev-summary-card.tone-success { border-color: rgba(4,120,87,0.18); }

/* Seções */
.ev-section {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: var(--ev-shadow-sm);
}
.ev-section--primary { border-color: #d3def0; }
.ev-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--ev-border-soft);
}
.ev-section__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ev-text);
    margin: 0 0 0.15rem;
}
.ev-section__subtitle {
    font-size: 13px;
    color: var(--ev-text-muted);
    margin: 0;
}
.ev-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--ev-primary-soft);
    color: var(--ev-primary);
}
.ev-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.5rem;
}

/* Tabela enterprise */
.ev-table-wrap { overflow-x: auto; }
.ev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.ev-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ev-text-muted);
    padding: 0.7rem 0.85rem;
    background: var(--ev-surface-soft);
    border-bottom: 1px solid var(--ev-border);
    white-space: nowrap;
}
.ev-table tbody td {
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid var(--ev-border-soft);
    color: var(--ev-text-soft);
    vertical-align: top;
}
.ev-table tbody tr:hover { background: var(--ev-surface-soft); }
.ev-table tbody tr:last-child td { border-bottom: none; }

.ev-row-accent { position: relative; }
.ev-row-accent--critical td:first-child { box-shadow: inset 3px 0 0 var(--ev-danger); }
.ev-row-accent--high     td:first-child { box-shadow: inset 3px 0 0 var(--ev-warning); }
.ev-row-accent--medium   td:first-child { box-shadow: inset 3px 0 0 var(--ev-info); }
.ev-row-accent--low      td:first-child { box-shadow: inset 3px 0 0 var(--ev-text-faint); }

.ev-cell-title { color: var(--ev-text); font-weight: 600; margin-bottom: 0.15rem; }
.ev-cell-id    { color: var(--ev-text-muted); font-size: 11px; font-family: 'JetBrains Mono', 'SFMono-Regular', monospace; }
.ev-cell-impact { color: var(--ev-text-soft); max-width: 280px; }
.ev-cell-suggest { color: var(--ev-text-muted); max-width: 240px; }
.ev-code {
    font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
    font-size: 12px;
    color: var(--ev-primary);
    background: var(--ev-primary-soft);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}
.ev-time { color: var(--ev-text-soft); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.ev-mono { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.ev-link { color: var(--ev-primary); text-decoration: none; font-weight: 600; }
.ev-link:hover { text-decoration: underline; }
.ev-muted { color: var(--ev-text-faint); }
.ev-empty-hint { color: var(--ev-text-faint); font-size: 13px; padding: 1.25rem 1rem; text-align: center; }

/* Severidade & status (badges enterprise — sutis) */
.ev-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    white-space: nowrap;
}
.ev-tag::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}
.ev-tag.sev-critical { color: var(--ev-danger);  background: var(--ev-danger-soft);  border-color: rgba(185,28,28,0.15); }
.ev-tag.sev-high     { color: var(--ev-warning); background: var(--ev-warning-soft); border-color: rgba(180,83,9,0.15); }
.ev-tag.sev-medium   { color: var(--ev-info);    background: var(--ev-info-soft);    border-color: rgba(14,116,144,0.15); }
.ev-tag.sev-low      { color: var(--ev-text-muted); background: var(--ev-surface-muted); border-color: var(--ev-border); }

.ev-tag.st-open       { color: var(--ev-danger);  background: var(--ev-danger-soft); }
.ev-tag.st-triage     { color: var(--ev-warning); background: var(--ev-warning-soft); }
.ev-tag.st-mitigating { color: var(--ev-info);    background: var(--ev-info-soft); }
.ev-tag.st-monitoring { color: #6d28d9;           background: #efeafd; }
.ev-tag.st-resolved   { color: var(--ev-success); background: var(--ev-success-soft); }

/* Listas operacionais */
.ev-list { display: flex; flex-direction: column; gap: 0.6rem; }
.ev-list-item {
    display: flex; justify-content: space-between; gap: 1.25rem;
    padding: 0.95rem 1.1rem;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius-sm);
    transition: border-color 0.15s ease;
}
.ev-list-item:hover { border-color: #c9d2e2; }
.ev-list-main { flex: 1; min-width: 0; }
.ev-list-title { color: var(--ev-text); font-weight: 600; margin-bottom: 0.2rem; font-size: 14px; }
.ev-list-meta {
    display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
    color: var(--ev-text-muted);
    font-size: 12.5px;
}
.ev-list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }

.ev-progress { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.55rem; }
.ev-progress__track { flex: 1; height: 6px; background: var(--ev-surface-muted); border-radius: 999px; overflow: hidden; }
.ev-progress__fill  { height: 100%; background: var(--ev-primary); border-radius: 999px; }
.ev-progress__text  { font-size: 12px; color: var(--ev-text-muted); font-family: 'JetBrains Mono', monospace; min-width: 36px; text-align: right; }

.ev-inc {
    font-size: 11px; padding: 0.18rem 0.5rem; border-radius: 6px; font-weight: 600;
    background: var(--ev-surface-muted); color: var(--ev-text-muted);
}
.ev-inc.is-warn { background: var(--ev-danger-soft); color: var(--ev-danger); }
.ev-inc.is-mild { background: var(--ev-info-soft);   color: var(--ev-info); }
.ev-inc.is-ok   { background: var(--ev-success-soft);color: var(--ev-success); }

.ev-sla {
    font-size: 11px; padding: 0.18rem 0.55rem; border-radius: 6px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--ev-success-soft); color: var(--ev-success);
}
.ev-sla.is-breach { background: var(--ev-danger-soft); color: var(--ev-danger); }

/* KPIs operacionais */
.ev-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 0.75rem;
}
.ev-metric {
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border-soft);
    border-radius: var(--ev-radius-sm);
    padding: 0.85rem 1rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.ev-metric__label {
    font-size: 11px; color: var(--ev-text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.ev-metric__value {
    font-size: 1.3rem; font-weight: 600; color: var(--ev-text);
}

/* Timeline */
.ev-timeline {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ev-timeline::before {
    content: '';
    position: absolute;
    left: 65px;
    top: 0.85rem; bottom: 0.85rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--ev-border) 12%, var(--ev-border) 88%, transparent);
}
.ev-timeline__item {
    display: grid;
    grid-template-columns: 52px 22px 1fr;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.55rem 0.7rem 0.55rem 0;
    margin: 0;
    border: none;
    background: transparent;
    border-radius: 6px;
    position: relative;
    transition: background 0.18s ease;
}
.ev-timeline__item + .ev-timeline__item { margin-top: 0.15rem; }
.ev-timeline__item:hover { background: var(--ev-surface-soft); }
.ev-timeline__time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--ev-text-muted);
    letter-spacing: 0.02em;
    padding-top: 2px;
    text-align: right;
}
.ev-timeline__icon {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ev-surface);
    color: var(--ev-text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9.5px;
    border: 1.5px solid var(--ev-border);
    box-shadow: 0 0 0 3px var(--ev-bg-page);
    z-index: 1;
    margin-top: 1px;
}
.ev-timeline__text {
    color: var(--ev-text);
    font-size: 13px;
    line-height: 1.5;
    padding-top: 2px;
}
.ev-timeline__item.tone-critical .ev-timeline__icon { background: var(--ev-danger-soft);  color: var(--ev-danger);  border-color: var(--ev-danger); }
.ev-timeline__item.tone-warning  .ev-timeline__icon { background: var(--ev-warning-soft); color: var(--ev-warning); border-color: var(--ev-warning); }
.ev-timeline__item.tone-success  .ev-timeline__icon { background: var(--ev-success-soft); color: var(--ev-success); border-color: var(--ev-success); }
.ev-timeline__item.tone-info     .ev-timeline__icon { background: var(--ev-info-soft);    color: var(--ev-info);    border-color: var(--ev-info); }
.ev-timeline__item.tone-critical .ev-timeline__icon { background: var(--ev-danger-soft);  color: var(--ev-danger); }
.ev-timeline__item.tone-warning  .ev-timeline__icon { background: var(--ev-warning-soft); color: var(--ev-warning); }
.ev-timeline__item.tone-success  .ev-timeline__icon { background: var(--ev-success-soft); color: var(--ev-success); }
.ev-timeline__item.tone-info     .ev-timeline__icon { background: var(--ev-info-soft);    color: var(--ev-info); }

/* Header stats compactos */
.ev-header-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--ev-border-soft);
}
.ev-header-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.ev-header-stat__value { font-size: 1.15rem; font-weight: 600; color: var(--ev-text); line-height: 1; }
.ev-header-stat__label { font-size: 11px; color: var(--ev-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ev-header-stat.is-critical .ev-header-stat__value { color: var(--ev-danger); }
.ev-header-stat.is-muted    .ev-header-stat__value { color: var(--ev-text-soft); font-weight: 500; }

/* Responsivo */
@media (max-width: 1200px) {
    .ev-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ev-header-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ev-grid-2 { grid-template-columns: 1fr; }
    .ev-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .ev-page-header { flex-direction: column; align-items: flex-start; }
    .ev-header-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ev-summary { grid-template-columns: 1fr; }
    .ev-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ev-list-item { flex-direction: column; }
    .ev-list-side { align-items: flex-start; }
}

/* =============================================================================
   Página Sinais — Mapeamento light-first das classes .ops-*
   Aplica a mesma linguagem visual enterprise sobre o markup atual.
   ============================================================================= */
.ops-header {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--ev-shadow-sm);
}
.ops-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.25rem;
}
.ops-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ev-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}
.ops-title-block h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    color: var(--ev-text);
    letter-spacing: -0.01em;
}
.ops-subtitle {
    color: var(--ev-text-soft);
    font-size: 0.9rem;
    margin: 0;
    max-width: 640px;
}
.ops-env {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--ev-border);
    background: var(--ev-surface-soft);
    font-size: 12px;
}
.ops-env-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ev-text-faint);
    box-shadow: none;
}
.ops-env.env-stable    { background: var(--ev-success-soft); border-color: rgba(4,120,87,0.18); }
.ops-env.env-stable .ops-env-dot   { background: var(--ev-success); box-shadow: none; }
.ops-env.env-attention { background: var(--ev-warning-soft); border-color: rgba(180,83,9,0.18); }
.ops-env.env-attention .ops-env-dot{ background: var(--ev-warning); box-shadow: none; }
.ops-env.env-degraded  { background: var(--ev-danger-soft); border-color: rgba(185,28,28,0.18); }
.ops-env.env-degraded .ops-env-dot { background: var(--ev-danger); box-shadow: none; animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 0%,100%{transform:scale(1);} 50%{transform:scale(1.25);} }
.ops-env-label {
    display: block; font-size: 10px;
    color: var(--ev-text-muted); text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 600;
}
.ops-env-value {
    display: block; font-size: 13px; font-weight: 600; color: var(--ev-text);
}
.ops-env.env-stable    .ops-env-value { color: var(--ev-success); }
.ops-env.env-attention .ops-env-value { color: var(--ev-warning); }
.ops-env.env-degraded  .ops-env-value { color: var(--ev-danger); }

.ops-header-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--ev-border-soft);
    padding-top: 1.1rem;
}
.ops-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.ops-stat-value { font-size: 1.2rem; font-weight: 600; color: var(--ev-text); line-height: 1; letter-spacing: -0.01em; }
.ops-stat-label { font-size: 11px; color: var(--ev-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.ops-stat-critical .ops-stat-value { color: var(--ev-danger); }
.ops-stat-muted .ops-stat-value    { color: var(--ev-text-soft); font-weight: 500; }

/* Cards-resumo */
.ops-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ops-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ev-shadow-sm);
}
.ops-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--ev-border);
}
.ops-card.tone-critical::before { background: var(--ev-danger); }
.ops-card.tone-warning::before  { background: var(--ev-warning); }
.ops-card.tone-success::before  { background: var(--ev-success); }
.ops-card-head {
    display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.ops-card-kicker {
    font-size: 11px; color: var(--ev-text-muted);
    text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.ops-card-trend {
    font-size: 12px; color: var(--ev-text-muted);
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.ops-card-trend.trend-up   { color: var(--ev-success); }
.ops-card-trend.trend-down { color: var(--ev-danger); }
.ops-card-value {
    font-size: 1.85rem; font-weight: 600; color: var(--ev-text); line-height: 1.1;
    letter-spacing: -0.01em;
}
.ops-card-context { font-size: 13.5px; color: var(--ev-text-soft); }
.ops-card-origin  {
    font-size: 12px; color: var(--ev-text-muted);
    border-top: 1px solid var(--ev-border-soft); padding-top: 0.5rem; margin-top: 0.1rem;
}
.ops-card-alert {
    margin-top: 0.4rem;
    background: var(--ev-danger-soft);
    color: var(--ev-danger);
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 12px;
    display: flex; align-items: center; gap: 0.4rem;
    font-weight: 500;
}
.ops-card.tone-warning .ops-card-alert {
    background: var(--ev-warning-soft); color: var(--ev-warning);
}

/* Seções */
.ops-section {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--ev-shadow-sm);
}
.ops-section-primary { border-color: #d3def0; box-shadow: var(--ev-shadow-sm); }
.ops-section-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--ev-border-soft);
}
.ops-section-header h2 { font-size: 15px; font-weight: 600; margin: 0 0 0.15rem; color: var(--ev-text); }
.ops-section-header p  { margin: 0; color: var(--ev-text-muted); font-size: 13px; }
.ops-pill {
    background: var(--ev-primary-soft); color: var(--ev-primary);
    padding: 0.25rem 0.65rem; border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}
.ops-grid-2 {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.ops-grid-2 .ops-section { margin-bottom: 0; }

/* Tabela */
.ops-table-wrap { overflow-x: auto; }
.ops-table {
    width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.ops-table thead th {
    text-align: left; font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ev-text-muted); padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--ev-border);
    background: var(--ev-surface-soft);
    white-space: nowrap;
}
.ops-table tbody td {
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid var(--ev-border-soft);
    color: var(--ev-text-soft); vertical-align: top;
}
.ops-table tbody tr:hover { background: var(--ev-surface-soft); }
.ops-table tbody tr:last-child td { border-bottom: none; }
.ops-row.sev-row-critical td:first-child { box-shadow: inset 3px 0 0 var(--ev-danger); }
.ops-row.sev-row-high td:first-child     { box-shadow: inset 3px 0 0 var(--ev-warning); }
.ops-row.sev-row-medium td:first-child   { box-shadow: inset 3px 0 0 var(--ev-info); }
.ops-row.sev-row-low td:first-child      { box-shadow: inset 3px 0 0 var(--ev-text-faint); }
.ops-cell-title { color: var(--ev-text); font-weight: 600; margin-bottom: 0.15rem; font-size: 14px; }
.ops-cell-sub   { color: var(--ev-text-muted); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.ops-cell-impact { color: var(--ev-text-soft); max-width: 280px; }
.ops-cell-suggest { color: var(--ev-text-muted); font-style: normal; max-width: 240px; }
.ops-code {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: var(--ev-primary); background: var(--ev-primary-soft);
    padding: 0.15rem 0.45rem; border-radius: 4px;
}
.ops-time { color: var(--ev-text-soft); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }

/* Severidade & status (badges sutis com pílula clara) */
.ops-sev, .ops-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.18rem 0.55rem; border-radius: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; white-space: nowrap;
    border: 1px solid transparent;
    min-width: 90px;
    justify-content: center;
}
.ops-sev::before, .ops-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: 0.85;
}
.sev-critical { background: var(--ev-danger-soft);  color: var(--ev-danger);  border-color: rgba(185,28,28,0.15); }
.sev-high     { background: var(--ev-warning-soft); color: var(--ev-warning); border-color: rgba(180,83,9,0.15); }
.sev-medium   { background: var(--ev-info-soft);    color: var(--ev-info);    border-color: rgba(14,116,144,0.15); }
.sev-low      { background: var(--ev-surface-muted);color: var(--ev-text-muted); border-color: var(--ev-border); }

.st-open       { background: var(--ev-danger-soft);  color: var(--ev-danger); }
.st-triage     { background: var(--ev-warning-soft); color: var(--ev-warning); }
.st-mitigating { background: var(--ev-info-soft);    color: var(--ev-info); }
.st-monitoring { background: #efeafd;                color: #6d28d9; }
.st-resolved   { background: var(--ev-success-soft); color: var(--ev-success); }

.ops-link { color: var(--ev-primary); text-decoration: none; font-weight: 600; }
.ops-link:hover { text-decoration: underline; }
.ops-muted { color: var(--ev-text-faint); }
.ops-mono  { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ev-text-muted); }

/* Listas */
.ops-list { display: flex; flex-direction: column; gap: 0.6rem; }
.ops-list-item {
    display: flex; justify-content: space-between; gap: 1.25rem;
    padding: 0.95rem 1.1rem;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius-sm);
    transition: border-color 0.15s ease;
}
.ops-list-item:hover { border-color: #c9d2e2; }
.ops-list-main { flex: 1; min-width: 0; }
.ops-list-title { color: var(--ev-text); font-weight: 600; margin-bottom: 0.25rem; font-size: 14px; }
.ops-list-meta {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    color: var(--ev-text-muted); font-size: 12.5px; align-items: center;
}
.ops-list-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }

.ops-progress { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.6rem; }
.ops-progress-bar {
    flex: 1; height: 6px;
    background: var(--ev-surface-muted);
    border-radius: 999px; overflow: hidden;
}
.ops-progress-fill { height: 100%; background: var(--ev-primary); border-radius: 999px; }
.ops-progress-text { font-size: 12px; color: var(--ev-text-muted); font-family: 'JetBrains Mono', monospace; min-width: 36px; text-align: right; }

.ops-inc {
    font-size: 11px; padding: 0.18rem 0.55rem; border-radius: 6px; font-weight: 600;
    background: var(--ev-surface-muted); color: var(--ev-text-muted);
}
.inc-ok   { background: var(--ev-success-soft); color: var(--ev-success); }
.inc-mild { background: var(--ev-info-soft);    color: var(--ev-info); }
.inc-warn { background: var(--ev-danger-soft);  color: var(--ev-danger); }

.ops-sla {
    font-size: 11px; padding: 0.18rem 0.55rem; border-radius: 6px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--ev-success-soft); color: var(--ev-success);
}
.sla-ok     { background: var(--ev-success-soft); color: var(--ev-success); }
.sla-breach { background: var(--ev-danger-soft);  color: var(--ev-danger); }

/* Métricas operacionais */

/* ========================================================================== */
/* Paginação */
/* ========================================================================== */

.ev-pagination {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ev-border-soft);
}

.ev-pagination__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ev-pagination__info {
    font-size: 13px;
    color: var(--ev-text-muted);
    font-weight: 500;
}

.ev-pagination__buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ev-pagination__numbers {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ev-pagination__number {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ev-border);
    background: var(--ev-surface);
    color: var(--ev-text-soft);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ev-pagination__number:hover {
    border-color: var(--ev-primary);
    background: var(--ev-primary-soft);
    color: var(--ev-primary);
}

.ev-pagination__number--active {
    background: var(--ev-primary);
    color: #fff;
    border-color: var(--ev-primary);
    cursor: default;
}

.ev-pagination__number--active:hover {
    background: var(--ev-primary);
    color: #fff;
    border-color: var(--ev-primary);
}

.ev-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--ev-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.ev-btn--sm {
    padding: 0.5rem 0.8rem;
    font-size: 12.5px;
}

.ev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ev-btn:disabled:hover {
    border-color: var(--ev-border);
    background: var(--ev-surface);
}

/* Responsivo para paginação */
@media (max-width: 768px) {
    .ev-pagination__controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ev-pagination__buttons {
        justify-content: space-between;
    }
    
    .ev-pagination__info {
        text-align: center;
    }
}

/* ========================================================================== */
/* Modal de Execução de Automações */
/* ========================================================================== */

.execution-config-modal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 500px;
    max-width: 600px;
}

.execution-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--ev-surface-soft);
    padding: 1rem 1.25rem;
    border-radius: var(--ev-radius-sm);
    border: 1px solid var(--ev-border-soft);
}

.execution-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.execution-info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ev-text-muted);
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}

.execution-info-value {
    font-size: 13px;
    color: var(--ev-text);
    flex: 1;
    font-weight: 500;
}

.execution-divider {
    height: 1px;
    background: var(--ev-border-soft);
    margin: 0.5rem 0;
}

.execution-framework-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.execution-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ev-text);
    margin: 0;
}

.execution-section-subtitle {
    font-size: 13px;
    color: var(--ev-text-muted);
    margin: 0.25rem 0 0 0;
}

.execution-framework-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.execution-framework-option {
    cursor: pointer;
    margin: 0;
    display: block;
}

.execution-framework-option input[type="radio"] {
    display: none;
}

.execution-framework-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--ev-surface);
    border: 2px solid var(--ev-border);
    border-radius: var(--ev-radius-sm);
    transition: all 0.2s ease;
}

.execution-framework-option:hover .execution-framework-card {
    border-color: var(--ev-primary);
    background: var(--ev-primary-soft);
}

.execution-framework-option.is-selected .execution-framework-card {
    border-color: var(--ev-primary);
    background: var(--ev-primary-soft);
    box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.1);
}

.execution-framework-icon {
    font-size: 20px;
    color: var(--ev-primary);
    width: 32px;
    text-align: center;
}

.execution-framework-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ev-text);
    flex: 1;
}

.execution-scope-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.execution-scope-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--ev-success-soft);
    border: 1px solid rgba(4, 120, 87, 0.2);
    padding: 1rem 1.25rem;
    border-radius: var(--ev-radius-sm);
}

.execution-scope-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 13px;
    color: var(--ev-text-soft);
}

.execution-scope-item i {
    color: var(--ev-success);
    font-size: 14px;
}

.execution-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--ev-border-soft);
}

/* ===================================================================
   DEMO EXECUTION MODAL - Logs em tempo real
   =================================================================== */

.demo-execution-modal {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

/* Container para conteúdo com padding (exceto header) */
.demo-execution-modal > :not(.demo-execution-header) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.demo-execution-modal > .demo-execution-logs {
    margin-top: 1rem;
}

.demo-execution-modal > .demo-execution-progress {
    margin-top: 1rem;
}

.demo-execution-modal > .demo-execution-actions {
    margin-bottom: 1.5rem;
}

/* Resetar padding do modal-body para demo */
.modal-body:has(.demo-execution-modal) {
    padding: 0;
    max-height: 85vh;
    overflow: hidden;
}

.demo-execution-header {
    background: linear-gradient(135deg, #1f3a8a 0%, #2563eb 100%);
    padding: 1.5rem;
    color: white;
    margin: 0;
    flex-shrink: 0;
    border-radius: var(--ev-radius-md) var(--ev-radius-md) 0 0;
}

.demo-execution-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    color: white;
}

.demo-execution-info p {
    font-size: 13px;
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.demo-execution-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.demo-badge i {
    font-size: 10px;
}

.demo-execution-logs {
    background: #0a0e1a;
    border-radius: var(--ev-radius-sm);
    padding: 0.75rem;
    height: 280px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #e5e7eb;
    flex-shrink: 1;
    min-height: 200px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.demo-execution-logs::-webkit-scrollbar {
    width: 8px;
}

.demo-execution-logs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.demo-execution-logs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.demo-execution-logs::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.demo-log-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem;
    margin-bottom: 0.2rem;
    border-radius: 4px;
    animation: fadeInLog 0.3s ease;
}

@keyframes fadeInLog {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-log-time {
    color: #6b7280;
    font-size: 10px;
    min-width: 40px;
    flex-shrink: 0;
}

.demo-log-icon {
    flex-shrink: 0;
    font-size: 13px;
}

.demo-log-text {
    flex: 1;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.demo-log-system {
    background: rgba(99, 102, 241, 0.1);
}

.demo-log-system .demo-log-text {
    color: #a5b4fc;
}

.demo-log-info {
    background: rgba(59, 130, 246, 0.1);
}

.demo-log-info .demo-log-text {
    color: #93c5fd;
}

.demo-log-step {
    background: rgba(168, 85, 247, 0.1);
}

.demo-log-step .demo-log-text {
    color: #d8b4fe;
    font-weight: 500;
}

.demo-log-success {
    background: rgba(34, 197, 94, 0.1);
}

.demo-log-success .demo-log-text {
    color: #86efac;
}

.demo-log-error {
    background: rgba(255, 92, 92, 0.1);
}

.demo-log-error .demo-log-text {
    color: #fca5a5;
}

.demo-log-final-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.demo-log-final-success .demo-log-text {
    color: #86efac;
    font-weight: 600;
    font-size: 13px;
}

.demo-execution-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.demo-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--ev-border-soft);
    border-radius: 100px;
    overflow: hidden;
}

.demo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.demo-progress-status {
    font-size: 12px;
    color: var(--ev-text-soft);
    font-weight: 500;
    text-align: center;
}

.demo-execution-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ev-border-soft);
    flex-shrink: 0;
}

.demo-execution-actions .ev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .demo-execution-modal {
        width: 100%;
        max-height: 75vh;
    }
    
    .demo-execution-modal > :not(.demo-execution-header) {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .demo-execution-modal > .demo-execution-actions {
        margin-bottom: 1rem;
    }
    
    .demo-execution-header {
        padding: 1.25rem;
    }
    
    .demo-execution-info h3 {
        font-size: 14px;
    }
    
    .demo-execution-info p {
        font-size: 12px;
    }
    
    .demo-execution-logs {
        height: 200px;
        font-size: 11px;
    }
    
    .demo-log-text {
        font-size: 11px;
    }
    
    .demo-execution-actions {
        flex-direction: column;
    }
    
    .demo-execution-actions button {
        width: 100%;
    }
}

/* ===================================================================
   FIM DEMO MODAL
   =================================================================== */

.execution-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--ev-warning-soft);
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: var(--ev-radius-sm);
    text-align: center;
}

.execution-warning i {
    font-size: 48px;
    color: var(--ev-warning);
}

.execution-warning p {
    margin: 0;
    font-size: 14px;
    color: var(--ev-text-soft);
}

.execution-warning strong {
    color: var(--ev-text);
    font-weight: 600;
}

/* Responsivo para modal de execução */
@media (max-width: 768px) {
    .execution-config-modal {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    .execution-framework-card {
        padding: 0.875rem 1rem;
    }
    
    .execution-framework-icon {
        font-size: 18px;
        width: 28px;
    }
    
    .execution-framework-label {
        font-size: 13px;
    }
}

/* Métricas operacionais */
.ops-metrics {
    display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0.75rem;
}
.ops-metric {
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border-soft);
    border-radius: var(--ev-radius-sm);
    padding: 0.85rem 1rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.ops-metric-label {
    font-size: 11px; color: var(--ev-text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.ops-metric-value { font-size: 1.3rem; font-weight: 600; color: var(--ev-text); letter-spacing: -0.01em; }

/* Timeline */
.ops-timeline {
    list-style: none; margin: 0;
    padding: 0.25rem 0 0.25rem 0.5rem;
    display: flex; flex-direction: column;
    position: relative;
}
.ops-timeline::before {
    content: '';
    position: absolute;
    left: 65px;
    top: 0.85rem; bottom: 0.85rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--ev-border) 12%, var(--ev-border) 88%, transparent);
}
.ops-timeline-item {
    display: grid; grid-template-columns: 52px 22px 1fr;
    align-items: flex-start; gap: 0.85rem;
    padding: 0.55rem 0.7rem 0.55rem 0;
    margin: 0;
    border: none;
    background: transparent;
    border-radius: 6px;
    position: relative;
    transition: background 0.18s ease;
}
.ops-timeline-item + .ops-timeline-item { margin-top: 0.15rem; }
.ops-timeline-item:hover { background: var(--ev-surface-soft); }
.ops-timeline-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500;
    color: var(--ev-text-muted);
    letter-spacing: 0.02em;
    padding-top: 2px;
    text-align: right;
}
.ops-timeline-icon {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ev-surface);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ev-text-muted); font-size: 9.5px;
    border: 1.5px solid var(--ev-border);
    box-shadow: 0 0 0 3px var(--ev-bg-page);
    z-index: 1;
    margin-top: 1px;
}
.ops-timeline-text {
    color: var(--ev-text); font-size: 13px; line-height: 1.5;
    padding-top: 2px;
}
.ops-timeline-item.tone-critical .ops-timeline-icon { background: var(--ev-danger-soft);  color: var(--ev-danger);  border-color: var(--ev-danger); }
.ops-timeline-item.tone-warning  .ops-timeline-icon { background: var(--ev-warning-soft); color: var(--ev-warning); border-color: var(--ev-warning); }
.ops-timeline-item.tone-success  .ops-timeline-icon { background: var(--ev-success-soft); color: var(--ev-success); border-color: var(--ev-success); }
.ops-timeline-item.tone-info     .ops-timeline-icon { background: var(--ev-info-soft);    color: var(--ev-info);    border-color: var(--ev-info); }
.ops-timeline-item.tone-critical .ops-timeline-icon { background: var(--ev-danger-soft);  color: var(--ev-danger); }
.ops-timeline-item.tone-warning  .ops-timeline-icon { background: var(--ev-warning-soft); color: var(--ev-warning); }
.ops-timeline-item.tone-success  .ops-timeline-icon { background: var(--ev-success-soft); color: var(--ev-success); }
.ops-timeline-item.tone-info     .ops-timeline-icon { background: var(--ev-info-soft);    color: var(--ev-info); }

/* Simplified Page Components */
.ops-empty-state {
    text-align: center; padding: 3rem 1.5rem; color: var(--ev-text-muted);
}
.ops-empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; color: var(--ev-success); }
.ops-empty-state p { margin: 0; font-size: 14px; }

.ops-table-priority .ops-priority-row td:first-child { font-weight: 500; }
.ops-signal-cell { display: flex; flex-direction: column; gap: 0.2rem; }
.ops-signal-id { font-family: monospace; font-size: 11px; color: var(--ev-primary); font-weight: 600; }
.ops-signal-title { font-size: 13px; color: var(--ev-text); }
.ops-signal-origin { font-size: 11px; color: var(--ev-text-muted); }
.ops-impact { font-size: 12px; color: var(--ev-text-soft); max-width: 200px; display: block; 
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-owner { font-size: 12px; color: var(--ev-text); }
.ops-sla-active { color: var(--ev-primary); font-weight: 500; font-size: 12px; }
.ops-sla-none { color: var(--ev-text-muted); }

.ops-actions { display: flex; gap: 0.4rem; }
.ops-btn-cta {
    padding: 0.45rem 1rem; border-radius: 6px; font-size: 12px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
    background: var(--ev-primary); color: white;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    width: 120px; white-space: nowrap;
}
.ops-btn-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.ops-btn-cta.ops-btn-warning { background: var(--ev-warning); }
.ops-btn-cta.ops-btn-warning:hover { background: var(--warning); }
.ops-btn-cta.ops-btn-danger { background: var(--ev-danger); }
.ops-btn-cta.ops-btn-danger:hover { background: var(--error); }

.ops-view-all {
    text-align: center; padding: 0.75rem; border-top: 1px solid var(--ev-border-soft); margin-top: 0.75rem;
}
.ops-view-all a {
    color: var(--ev-primary); text-decoration: none; font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.ops-view-all a:hover { color: var(--primary-dark); }

.ops-collapsible {
    background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
    margin-bottom: 1.5rem; overflow: hidden;
}
.ops-collapsible-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; cursor: pointer; user-select: none;
    background: var(--ev-surface); transition: background 0.2s;
}
.ops-collapsible-header:hover { background: var(--ev-hover); }
.ops-collapsible-header h3 {
    margin: 0; font-size: 14px; font-weight: 600; color: var(--ev-text);
    display: flex; align-items: center; gap: 0.5rem;
}
.ops-pill-sm {
    background: var(--ev-primary-soft); color: var(--ev-primary);
    padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 10px; font-weight: 600;
}

.ops-collapsible-content {
    padding: 1.5rem; border-top: 1px solid var(--ev-border-soft);
    background: var(--bg-secondary);
}
.ops-secondary-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.ops-secondary-grid h4 {
    font-size: 13px; font-weight: 600; margin: 0 0 0.75rem; color: var(--ev-text);
    display: flex; align-items: center; gap: 0.4rem;
}
.ops-badge {
    background: var(--ev-primary-soft); color: var(--ev-primary);
    padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 10px; font-weight: 600;
}
.ops-muted { color: var(--ev-text-muted); font-size: 13px; margin: 0; }

.ops-compact-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem;
}
.ops-compact-list li {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.5rem; background: var(--ev-surface); border-radius: 6px;
    border: 1px solid var(--ev-border-soft);
}
.ops-compact-title { font-size: 12px; color: var(--ev-text); font-weight: 500; }
.ops-compact-meta { font-size: 11px; color: var(--ev-text-muted); }

.ops-compact-timeline {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem;
}
.ops-compact-timeline li {
    display: flex; gap: 0.5rem; font-size: 11px; padding: 0.4rem;
    background: var(--ev-surface); border-radius: 4px; border: 1px solid var(--ev-border-soft);
}
.ops-compact-time { color: var(--ev-text-muted); font-weight: 600; min-width: 35px; }
.ops-compact-text { color: var(--ev-text-soft); flex: 1; }

/* Link "ver mais" */
.ops-link-more {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 11px; color: var(--ev-primary); text-decoration: none;
    margin-top: 0.5rem; padding: 0.3rem 0;
    transition: all 0.2s ease;
}
.ops-link-more:hover {
    color: var(--ev-primary-hover);
    gap: 0.5rem;
}
.ops-link-more i {
    font-size: 9px;
}

/* Semáforo SLA */
.ops-sla {
    padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 11px; font-weight: 600;
    display: inline-block; white-space: nowrap;
}
.ops-sla.sla-ok {
    background: rgba(34, 197, 94, 0.15); color: #22c55e;
}
.ops-sla.sla-warning {
    background: rgba(251, 191, 36, 0.15); color: #fbbf24;
}
.ops-sla.sla-critical {
    background: rgba(239, 68, 68, 0.15); color: #ef4444;
    animation: pulse-sla 1.5s ease-in-out infinite;
}

@keyframes pulse-sla {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Sem proprietário (warning visual) */
.ops-no-owner {
    color: var(--ev-warning); font-style: italic; font-size: 12px;
}

/* Variantes de botões CTA */
.ops-btn-cta.ops-btn-secondary {
    background: var(--ev-surface); color: var(--ev-text); border: 1px solid var(--ev-border);
}
.ops-btn-cta.ops-btn-secondary:hover {
    background: var(--ev-hover); border-color: var(--ev-primary);
}

/* KPI variants (sem bordas visuais extras) */

/* Responsivo */
@media (max-width: 1200px) {
    .ops-secondary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
    .ops-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ops-header-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ops-grid-2 { grid-template-columns: 1fr; }
    .ops-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .ops-header-main { flex-direction: column; }
    .ops-header-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ops-cards { grid-template-columns: 1fr; }
    .ops-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ops-list-item { flex-direction: column; }
    .ops-list-side { align-items: flex-start; }
}

/* =============================================================================
   Componentes adicionais do design system EV
   ============================================================================= */
.ev-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (max-width: 1200px) { .ev-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px)  { .ev-grid-3 { grid-template-columns: 1fr; } }

.ev-filters {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 1rem;
    align-items: end;
}
.ev-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ev-field label {
    font-size: 11px; font-weight: 600;
    color: var(--ev-text-muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.ev-field input,
.ev-field select {
    appearance: none;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 13.5px;
    color: var(--ev-text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}
.ev-field input:focus,
.ev-field select:focus {
    border-color: var(--ev-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ev-field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7891' stroke-width='2.5'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2.2rem;
}
@media (max-width: 1024px) { .ev-filters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ev-filters { grid-template-columns: 1fr; } }

/* Toggle switch enterprise */
.toggle-switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background-color: var(--ev-border);
    border-radius: 999px;
    transition: 0.2s;
}
.toggle-slider::before {
    position: absolute; content: '';
    height: 16px; width: 16px; left: 3px; top: 3px;
    background: #ffffff; border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(15,27,45,0.18);
}
.toggle-switch input:checked + .toggle-slider { background-color: var(--ev-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Header global enterprise */
.header {
    background: var(--ev-surface);
    border-bottom: 1px solid var(--ev-border);
    box-shadow: none;
}
.search-input {
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 999px;
    padding: 0.55rem 1rem 0.55rem 2.4rem;
    font-size: 13.5px;
    color: var(--ev-text);
}
.search-input:focus {
    background: var(--ev-surface);
    border-color: var(--ev-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
    outline: none;
}
.search-icon { color: var(--ev-text-muted); }
.icon-button {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    color: var(--ev-text-soft);
    border-radius: 8px;
    transition: all 0.15s ease;
}
.icon-button:hover { border-color: #c9d2e2; background: var(--ev-surface-soft); color: var(--ev-text); }

/* Footer da sidebar */
.sidebar-footer { background: #0e1a2c; border-top: 1px solid rgba(255,255,255,0.05); padding: 1rem 1.25rem; }
.user-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.user-name { font-size: 13px; color: #e6ebf3; }
.user-role { font-size: 11px; color: #8a96ad; }
.evidence-tagline { color: #8a96ad; font-size: 11px; font-style: italic; padding-top: 0.75rem; }

/* =============================================================================
   Sinais — paginação + métricas executivas
   ============================================================================= */
.ops-section--paged .ops-list--page { min-height: 0; }
.ops-list--empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--ev-text-muted);
    font-size: 13px;
    border: 1px dashed var(--ev-border);
    border-radius: var(--ev-radius-sm);
}

.ops-pager {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.25rem 0;
    margin-top: 0.75rem;
    border-top: 1px solid var(--ev-border-soft);
}
.ops-pager__nav {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border: 1px solid var(--ev-border);
    background: var(--ev-surface);
    color: var(--ev-text-soft);
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s ease;
}
.ops-pager__nav:hover { border-color: var(--ev-accent); color: var(--ev-accent); background: var(--ev-primary-soft); }
.ops-pager__dots { display: flex; align-items: center; gap: 0.4rem; }
.ops-pager__dot {
    min-width: 26px; height: 26px;
    padding: 0 0.55rem;
    border: 1px solid var(--ev-border);
    background: var(--ev-surface);
    color: var(--ev-text-muted);
    border-radius: 999px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.ops-pager__dot:hover { color: var(--ev-text); border-color: #c9d2e2; }
.ops-pager__dot.is-active {
    background: var(--ev-primary);
    border-color: var(--ev-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(31,58,138,0.18);
}

/* Métricas operacionais — versão executiva compacta */
.ops-metrics-section { padding-bottom: 1.25rem; }
.ops-metrics-exec {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 0.85rem;
}
@media (max-width: 1100px) { .ops-metrics-exec { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px)  { .ops-metrics-exec { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.ops-metric-exec {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--ev-border);
    border-left-width: 3px;
    border-radius: var(--ev-radius-sm);
    background: var(--ev-surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ops-metric-exec:hover { box-shadow: 0 2px 6px rgba(15,27,45,0.05); }
.ops-metric-exec__icon {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.ops-metric-exec__body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ops-metric-exec__label {
    font-size: 10.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ev-text-muted);
}
.ops-metric-exec__value {
    font-size: 18px; font-weight: 700; color: var(--ev-text);
    line-height: 1.15;
    font-feature-settings: 'tnum' 1;
}
.ops-metric-exec__hint { font-size: 11px; color: var(--ev-text-muted); }

.ops-metric-exec.tone-info    { border-left-color: #2563EB; }
.ops-metric-exec.tone-info    .ops-metric-exec__icon { background: #eaf0ff; color: #2563EB; }
.ops-metric-exec.tone-danger  { border-left-color: #b91c1c; }
.ops-metric-exec.tone-danger  .ops-metric-exec__icon { background: #fdecec; color: #b91c1c; }
.ops-metric-exec.tone-warning { border-left-color: #b45309; }
.ops-metric-exec.tone-warning .ops-metric-exec__icon { background: #fcf2e0; color: #b45309; }
.ops-metric-exec.tone-neutral { border-left-color: #6b7891; }
.ops-metric-exec.tone-neutral .ops-metric-exec__icon { background: #eef1f6; color: #45526b; }
.ops-metric-exec.tone-success { border-left-color: #047857; }
.ops-metric-exec.tone-success .ops-metric-exec__icon { background: #e6f4ee; color: #047857; }

/* Paginação Sinais — força ocultar mesmo com .ops-list flex */
.ops-list.is-hidden { display: none !important; }
.ops-list--page[hidden] { display: none !important; }

/* Empilha as páginas no mesmo slot — altura do container = página mais alta */
.ops-paged {
    display: grid;
    grid-template-areas: "stack";
}
.ops-paged > .ops-list--page {
    grid-area: stack;
    min-width: 0;
}
.ops-paged > .ops-list--page.is-hidden {
    visibility: hidden;
    pointer-events: none;
    display: flex !important;
}

/* Atividades recentes — painel lateral interpretativo */
.ops-activities {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 980px) { .ops-activities { grid-template-columns: 1fr; } }

.ops-aside {
    background: linear-gradient(180deg, var(--ev-surface-soft) 0%, var(--ev-surface) 100%);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.95rem;
    position: sticky; top: 1rem;
}
.ops-aside__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ops-aside__period {
    font-size: 11px; color: var(--ev-text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.ops-aside__narrative {
    font-size: 12.5px; line-height: 1.55; color: var(--ev-text-soft);
    padding: 0.7rem 0.85rem;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border-soft);
    border-left: 3px solid var(--ev-accent);
    border-radius: var(--ev-radius-sm);
}

.ops-aside__stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}
.ops-aside__stat {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.55rem 0.25rem;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border-soft);
    border-radius: var(--ev-radius-sm);
    border-top: 2px solid transparent;
}
.ops-aside__stat-value {
    font-size: 18px; font-weight: 700; line-height: 1;
    color: var(--ev-text);
    font-feature-settings: 'tnum' 1;
}
.ops-aside__stat-label {
    font-size: 10px; font-weight: 600;
    color: var(--ev-text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 0.3rem;
}
.ops-aside__stat.tone-danger  { border-top-color: var(--ev-danger); }
.ops-aside__stat.tone-danger  .ops-aside__stat-value { color: var(--ev-danger); }
.ops-aside__stat.tone-warning { border-top-color: var(--ev-warning); }
.ops-aside__stat.tone-warning .ops-aside__stat-value { color: var(--ev-warning); }
.ops-aside__stat.tone-success { border-top-color: var(--ev-success); }
.ops-aside__stat.tone-success .ops-aside__stat-value { color: var(--ev-success); }
.ops-aside__stat.tone-info    { border-top-color: var(--ev-info); }
.ops-aside__stat.tone-info    .ops-aside__stat-value { color: var(--ev-info); }

.ops-aside__highlights-title {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ev-text-muted);
    margin-bottom: 0.5rem;
}
.ops-aside__highlights ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.45rem;
}
.ops-aside__highlights li {
    display: flex; align-items: flex-start; gap: 0.55rem;
    font-size: 12.5px; color: var(--ev-text-soft); line-height: 1.4;
}
.ops-aside__highlights li strong { color: var(--ev-text); font-weight: 600; }
.ops-aside__dot {
    flex-shrink: 0;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ev-text-muted);
    margin-top: 6px;
}
.ops-aside__dot.tone-danger  { background: var(--ev-danger); }
.ops-aside__dot.tone-warning { background: var(--ev-warning); }
.ops-aside__dot.tone-success { background: var(--ev-success); }
.ops-aside__dot.tone-info    { background: var(--ev-info); }

/* Atividades — aside simplificado (sobrescreve versão anterior) */
.ops-activities {
    grid-template-columns: 1fr 280px;
    gap: 2.25rem;
}
.ops-aside {
    background: transparent;
    border: none;
    border-left: 1px solid var(--ev-border-soft);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1.75rem;
    display: flex; flex-direction: column;
    gap: 1rem;
    position: sticky; top: 1rem;
    box-shadow: none;
}
.ops-aside__chip { align-self: flex-start; }
.ops-aside__narrative {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ev-text);
    font-weight: 400;
    padding: 0;
    background: transparent;
    border: none;
    letter-spacing: -0.005em;
}
.ops-aside__highlights {
    list-style: none; margin: 0; padding: 0;
    border: none;
    display: flex; flex-direction: column; gap: 0.55rem;
}
.ops-aside__highlights li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 12.5px;
    color: var(--ev-text-soft);
    line-height: 1.45;
}
.ops-aside__highlights li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55rem;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--ev-text-faint, var(--ev-text-muted));
}

/* ===========================================
   UTILITY CLASSES - Display States
   Classes para controle de visibilidade
   =========================================== */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex-visible {
    display: flex !important;
}

/* Public Home - Initial State */
#public-home {
    display: flex;
}

body.authenticated #public-home {
    display: none;
}

/* App Layout - Initial State */
#app-layout {
    display: none;
    width: 100%;
}

body.authenticated #app-layout {
    display: block;
}

/* Notification Badge - Hidden by default */
.notification-badge {
    display: none;
}

.notification-badge.has-notifications {
    display: flex;
}

/* ===========================================
   MODALS - Session Expired & Error
   Modais criados dinamicamente pelo JS
   =========================================== */

/* Session Expired Modal */
#session-expired-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.session-expired-modal {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 500px;
    animation: slideUp 0.4s ease-out;
}

.session-expired-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff8c42, #ffd93d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-expired-icon i {
    font-size: 2.5rem;
    color: white;
}

.session-expired-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a2332;
    font-family: 'Inter', sans-serif;
}

.session-expired-message {
    color: #6b7894;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.session-expired-button {
    background: linear-gradient(135deg, #0066cc, #004c99);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.session-expired-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.session-expired-button:active {
    transform: translateY(0);
}

/* Error Modal */
.error-modal-container {
    padding: 3rem;
    text-align: center;
}

.error-modal-content {
    background: #2d3748;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-modal-icon {
    font-size: 3rem;
    color: #ff8c42;
    margin-bottom: 1rem;
}

.error-modal-title {
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.error-modal-message {
    color: #8f9bb3;
    margin-bottom: 1.5rem;
}

/* App Error Display */
.app-error-container {
    padding: 2rem;
    text-align: center;
}

.app-error-title {
    color: #dc2626;
}

.app-error-message {
    color: #64748b;
}

.app-error-stack {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    margin: 1rem auto;
    max-width: 600px;
    overflow: auto;
}

/* Empty State */
.empty-state-cell {
    text-align: center;
    padding: 2rem;
    color: var(--ev-text-muted, var(--text-tertiary));
}

/* ===========================================
   UTILITY CLASSES - Body States
   =========================================== */

body.modal-open {
    overflow: hidden;
}

body.authenticated #public-home {
    display: none;
}

body.authenticated #app-layout {
    display: flex;
}
@media (max-width: 980px) {
    .ops-aside {
        border-left: none;
        border-top: 1px solid var(--ev-border-soft);
        padding: 1.25rem 0 0;
    }
}

/* =============================================================================
   Issue Form (Jira-inspired) — modal de criação de bug/item
   Arquitetura: modal vira grid (header auto / body 1fr).
   O body recebe o <form>, que por sua vez é grid (corpo 1fr / footer auto).
   Apenas o `.ev-issue-form__body` rola. Header e footer ficam sempre visíveis.
   ============================================================================= */
.modal-content.modal-content--issue {
    max-width: 880px !important;
    width: calc(100% - 2rem);
    height: min(90vh, 880px);
    max-height: 90vh;
    padding: 0;
    border-radius: var(--ev-radius);
    overflow: hidden;
    background: var(--ev-surface);
    display: grid;
    grid-template-rows: auto 1fr;
}
.modal-content--issue .modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--ev-border);
    background: var(--ev-surface-soft);
}
.modal-content--issue .modal-header h2 {
    font-size: 14px; font-weight: 600;
    color: var(--ev-text);
    letter-spacing: -0.005em;
}
.modal-content--issue .modal-body {
    padding: 0;
    max-height: none;
    min-height: 0;
    overflow: hidden; /* o scroll vive dentro de .ev-issue-form__body */
    display: flex;
    flex-direction: column;
}

.ev-issue-form {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 0;
    height: 100%;
    width: 100%;
}
.ev-issue-form__body {
    overflow-y: auto;
    min-height: 0;
    scroll-behavior: smooth;
    /* indicação visual de que há mais conteúdo (sombras de scroll) */
    background:
        linear-gradient(var(--ev-surface) 30%, rgba(255,255,255,0)) center top,
        linear-gradient(rgba(255,255,255,0), var(--ev-surface) 70%) center bottom,
        radial-gradient(farthest-side at 50% 0, rgba(15,23,42,0.08), rgba(0,0,0,0)) center top,
        radial-gradient(farthest-side at 50% 100%, rgba(15,23,42,0.08), rgba(0,0,0,0)) center bottom;
    background-repeat: no-repeat;
    background-size: 100% 32px, 100% 32px, 100% 12px, 100% 12px;
    background-attachment: local, local, scroll, scroll;
}
.ev-issue-form__body::-webkit-scrollbar { width: 10px; }
.ev-issue-form__body::-webkit-scrollbar-track { background: transparent; }
.ev-issue-form__body::-webkit-scrollbar-thumb {
    background: var(--ev-border);
    border-radius: 8px;
    border: 2px solid var(--ev-surface);
}
.ev-issue-form__body::-webkit-scrollbar-thumb:hover { background: var(--ev-text-muted); }

.ev-issue-form__breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--ev-surface-soft);
    border-bottom: 1px solid var(--ev-border-soft);
    font-size: 12px; color: var(--ev-text-soft);
    position: sticky; top: 0; z-index: 2;
}
.ev-issue-form__breadcrumb strong { color: var(--ev-text); font-weight: 600; }
.ev-issue-form__breadcrumb i { color: var(--ev-text-muted); margin-right: 0.25rem; }
.ev-issue-form__sep { color: var(--ev-text-muted); }

.ev-issue-form__block {
    border: none;
    border-bottom: 1px solid var(--ev-border-soft);
    margin: 0;
    padding: 1.1rem 1.5rem 1.25rem;
}
.ev-issue-form__block:last-of-type { border-bottom: none; }
.ev-issue-form__legend {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--ev-text-soft);
    padding: 0;
    margin-bottom: 0.85rem;
}
.ev-issue-form__step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--ev-primary-soft);
    color: var(--ev-primary);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0;
}

.ev-issue-form__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem 1rem;
}
.ev-issue-form__col-2    { grid-column: span 3; }
.ev-issue-form__col-3    { grid-column: span 2; }
.ev-issue-form__col-full { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .ev-issue-form__col-2, .ev-issue-form__col-3 { grid-column: 1 / -1; }
}

.ev-issue-form .ev-field label {
    font-size: 11.5px; font-weight: 600;
    color: var(--ev-text-soft);
    text-transform: none;
    letter-spacing: 0;
}
.ev-issue-form .ev-field input,
.ev-issue-form .ev-field select,
.ev-issue-form .ev-field textarea {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 13.5px;
    color: var(--ev-text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}
.ev-issue-form .ev-field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.ev-issue-form .ev-field input:focus,
.ev-issue-form .ev-field select:focus,
.ev-issue-form .ev-field textarea:focus {
    border-color: var(--ev-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =============================================================================
   MODAIS DE AÇÃO DE SINAIS
   ============================================================================= */

.ops-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.ops-modal-show {
    display: flex;
    animation: ops-modal-fade-in 0.2s ease;
}

@keyframes ops-modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ops-modal-content {
    background: var(--ev-surface);
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: ops-modal-slide-up 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ops-modal-compact {
    max-width: 480px;
}

@keyframes ops-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ops-modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--ev-border);
    background: var(--ev-background);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.ops-modal-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ev-text-faint);
    margin-bottom: 0.5rem;
}

.ops-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ev-text);
    margin: 0;
}

.ops-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    color: var(--ev-text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ops-modal-close:hover {
    background: var(--ev-surface-muted);
    color: var(--ev-text);
    border-color: var(--ev-primary);
}

.ops-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.ops-modal-badges {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.ops-modal-section {
    margin-bottom: 2rem;
}

.ops-modal-section:last-child {
    margin-bottom: 0;
}

.ops-modal-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ev-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ops-modal-section h3 i {
    color: var(--ev-primary);
    font-size: 16px;
}

.ops-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.ops-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ops-info-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ev-text-faint);
}

.ops-info-value {
    font-size: 14px;
    color: var(--ev-text);
    font-weight: 500;
}

.ops-impact-box {
    padding: 1rem 1.25rem;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ev-text-muted);
}

.ops-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ops-timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
}

.ops-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 24px;
    bottom: -20px;
    width: 2px;
    background: var(--ev-border);
}

.ops-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--ev-background);
    box-shadow: 0 0 0 1px var(--ev-border);
}

.ops-timeline-dot-critical {
    background: var(--ev-danger);
    box-shadow: 0 0 0 1px var(--ev-danger);
}

.ops-timeline-dot-warning {
    background: var(--ev-warning);
    box-shadow: 0 0 0 1px var(--ev-warning);
}

.ops-timeline-dot-info {
    background: var(--ev-info);
    box-shadow: 0 0 0 1px var(--ev-info);
}

.ops-timeline-dot-muted {
    background: var(--ev-surface-muted);
}

.ops-timeline-content {
    flex: 1;
    padding-top: 1px;
}

.ops-timeline-time {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ev-text-faint);
    margin-bottom: 0.4rem;
}

.ops-timeline-text {
    font-size: 13px;
    color: var(--ev-text);
    line-height: 1.5;
}

.ops-actions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ops-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ev-text-muted);
    cursor: default;
}

.ops-action-chip i {
    color: var(--ev-primary);
    font-size: 13px;
}

.ops-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--ev-border);
    background: var(--ev-background);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.ops-modal-body:has(+ .ops-modal-footer) {
    padding-bottom: 1rem;
}

/* Botões do modal - sistema padronizado */
.ops-modal-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-width: 100px;
    outline: none;
    position: relative;
}

.ops-modal-btn:focus-visible {
    outline: 2px solid var(--ev-primary);
    outline-offset: 2px;
}

.ops-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão primário - ação principal */
.ops-modal-btn-primary {
    background: var(--ev-primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ops-modal-btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.ops-modal-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Botão danger - ações críticas */
.ops-modal-btn-danger {
    background: var(--ev-danger);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ops-modal-btn-danger:hover:not(:disabled) {
    background: var(--error);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
}

/* Botão warning - ações de atenção */
.ops-modal-btn-warning {
    background: var(--ev-warning);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ops-modal-btn-warning:hover:not(:disabled) {
    background: var(--warning);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.25);
}

/* Botão secundário - ações auxiliares */
.ops-modal-btn-secondary {
    background: var(--ev-surface);
    color: var(--ev-text);
    border: 1px solid var(--ev-border);
}

.ops-modal-btn-secondary:hover:not(:disabled) {
    background: var(--ev-hover);
    border-color: var(--ev-primary);
}

/* Botão ghost - Fechar */
.ops-modal-btn-ghost {
    background: transparent;
    color: var(--ev-text-muted);
    border: none;
    min-width: auto;
}

.ops-modal-btn-ghost:hover:not(:disabled) {
    background: var(--ev-surface-soft);
    color: var(--ev-text);
}

/* Estado de loading */
.ops-modal-btn.is-loading {
    color: transparent;
    pointer-events: none;
}

.ops-modal-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.ops-modal-btn-primary.is-loading::after,
.ops-modal-btn-danger.is-loading::after,
.ops-modal-btn-warning.is-loading::after {
    border-color: white;
    border-right-color: transparent;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hierarquia visual - ação principal à direita */
.ops-modal-actions {
    justify-content: flex-end;
}

.ops-modal-actions > .ops-modal-btn-ghost {
    margin-right: auto;
}

.ops-modal-intro {
    font-size: 14px;
    color: var(--ev-text-muted);
    margin-bottom: 1.5rem;
}

/* Confirmação */
.ops-confirm-message {
    text-align: center;
    padding: 1.5rem 0;
}

.ops-confirm-icon {
    font-size: 48px;
    color: var(--ev-primary);
    margin-bottom: 1rem;
}

.ops-confirm-message p {
    font-size: 14px;
    color: var(--ev-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ops-confirm-details {
    padding: 1rem 1.5rem;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    text-align: left;
}

.ops-confirm-details strong {
    display: block;
    font-size: 14px;
    color: var(--ev-text);
    margin-bottom: 0.4rem;
}

/* Formulário */
.ops-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ops-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ops-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ev-text);
    letter-spacing: 0.01em;
}

.ops-input {
    padding: 0.65rem 1rem;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ev-text);
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.ops-input:focus {
    border-color: var(--ev-primary);
    background: var(--ev-background);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ops-input::placeholder {
    color: var(--ev-text-faint);
}

textarea.ops-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* Alert */
.ops-alert {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.ops-alert-warning {
    background: var(--ev-warning-soft);
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.ops-alert i {
    font-size: 20px;
    color: var(--ev-warning);
    flex-shrink: 0;
}

.ops-alert strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ev-warning);
    margin-bottom: 0.25rem;
}

.ops-alert div {
    font-size: 12px;
    color: var(--ev-text-muted);
}

/* Opções de Mitigação */
.ops-mitigation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.ops-mitigation-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ops-mitigation-card:hover {
    background: var(--ev-background);
    border-color: var(--ev-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ops-mitigation-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ev-primary-soft);
    border-radius: 8px;
    color: var(--ev-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.ops-mitigation-info {
    flex: 1;
}

.ops-mitigation-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ev-text);
    margin-bottom: 0.3rem;
}

.ops-mitigation-desc {
    font-size: 11px;
    color: var(--ev-text-faint);
    line-height: 1.4;
}

/* Monitor Status */
.ops-monitor-status {
    padding: 1.25rem;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Check Status */
.ops-check-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ops-check-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    background: var(--ev-surface-soft);
    border: 1px solid var(--ev-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.ops-check-item i {
    font-size: 20px;
}

.ops-check-ok i {
    color: var(--ev-success);
}

.ops-check-warning {
    background: var(--ev-warning-soft);
    border-color: rgba(180, 83, 9, 0.2);
}

.ops-check-warning i {
    color: var(--ev-warning);
}

.ops-check-error {
    background: var(--ev-danger-soft);
    border-color: rgba(185, 28, 28, 0.2);
}

.ops-check-error i {
    color: var(--ev-danger);
}

/* Responsivo: Modal em mobile */
@media (max-width: 640px) {
    .ops-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .ops-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .ops-modal-body {
        padding: 1.5rem;
    }
    
    .ops-modal-actions {
        flex-wrap: wrap;
        padding: 1.25rem 1.5rem;
    }
    
    .ops-modal-btn {
        flex: 1;
        min-width: 0;
    }
    
    .ops-modal-btn-ghost {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .ops-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ops-mitigation-options {
        grid-template-columns: 1fr;
    }
}
.ev-req { color: var(--ev-danger); font-weight: 600; }
.ev-issue-form__hint {
    font-size: 11.5px; color: var(--ev-text-muted);
    margin-top: 0.25rem;
}

.ev-issue-form__upload {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.95rem 1rem;
    border: 1px dashed var(--ev-border);
    border-radius: var(--ev-radius-sm);
    background: var(--ev-surface-soft);
    color: var(--ev-text-muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ev-issue-form__upload:hover {
    border-color: var(--ev-accent);
    background: var(--ev-primary-soft);
    color: var(--ev-primary);
}
.ev-issue-form__upload i { font-size: 14px; }

.ev-issue-form__check { display: flex; flex-direction: column; gap: 0.55rem; }
.ev-issue-form__checkbox {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 13px; color: var(--ev-text-soft);
    cursor: pointer;
}
.ev-issue-form__checkbox strong { color: var(--ev-text); font-weight: 600; }
.ev-issue-form__checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.ev-issue-form__checkbox span {
    width: 16px; height: 16px;
    border: 1.5px solid var(--ev-border);
    border-radius: 4px;
    background: var(--ev-surface);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.ev-issue-form__checkbox input:checked + span {
    background: var(--ev-primary); border-color: var(--ev-primary);
}
.ev-issue-form__checkbox input:checked + span::after {
    content: '\2713';
    color: #fff;
    font-size: 11px; font-weight: 700;
    line-height: 1;
}

.ev-issue-form__footer {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: var(--ev-surface-soft);
    border-top: 1px solid var(--ev-border);
    box-shadow: 0 -8px 16px -12px rgba(15, 23, 42, 0.18);
    z-index: 3;
}
.ev-issue-form__footer-hint {
    font-size: 11.5px; color: var(--ev-text-muted);
    display: flex; align-items: center; gap: 0.45rem;
    flex: 1; min-width: 0;
}
.ev-issue-form__actions { display: flex; gap: 0.55rem; flex-shrink: 0; }
@media (max-width: 640px) {
    .ev-issue-form__footer { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .ev-issue-form__actions { justify-content: flex-end; }
}

/* Bloco "destino sugerido" no Novo Ticket N1 */
.ev-issue-form__suggest {
    display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    background: var(--ev-primary-soft, #eef4ff);
    border: 1px solid var(--ev-primary, #2563eb);
    border-left: 3px solid var(--ev-primary, #2563eb);
    border-radius: var(--ev-radius-sm);
    font-size: 12.5px;
    color: var(--ev-text);
}
.ev-issue-form__suggest i { color: var(--ev-primary, #2563eb); }
.ev-issue-form__suggest strong { font-weight: 600; }

/* ===========================================
   AUTHENTICATION SPLASH SCREEN
   =========================================== */
.auth-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1a2332 0%, #0f1419 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    color: white;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.splash-logo {
    animation: pulse-logo 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 102, 204, 0.6));
    color: #3385d6;
}

.splash-content h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    margin: 0;
}

.splash-content p {
    font-size: 14px;
    color: #8f9bb3;
    letter-spacing: 0.5px;
    margin: 0;
}

.splash-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #3385d6;
    animation: spin 1s linear infinite;
    margin-top: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

/* Hide main UI layout during loading */
body.loading-auth .sidebar,
body.loading-auth .main-content {
    display: none !important;
}

/* ===========================================
   PUBLIC LANDING PAGE (HOME) - New Design
   =========================================== */
.public-home {
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Tech Background */
.tech-background {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.tech-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: 
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}

.tech-halo-main {
    position: absolute;
    top: -10rem;
    left: 50%;
    transform: translateX(-50%);
    height: 36rem;
    width: 64rem;
    border-radius: 50%;
    background: rgba(51, 133, 214, 0.15);
    filter: blur(120px);
}

.tech-halo-accent {
    position: absolute;
    top: 5rem;
    right: 25%;
    height: 18rem;
    width: 18rem;
    border-radius: 50%;
    background: rgba(93, 205, 255, 0.1);
    filter: blur(100px);
}

.tech-signal-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 18%;
    height: 12rem;
    width: 100%;
    opacity: 0.5;
}

.signal-dash {
    stroke: var(--signal);
    stroke-width: 1.5;
    stroke-dasharray: 6 10;
    animation: signal-dash 18s linear infinite;
}

/* Container */
.public-home-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding-top: 6rem;
}

/* Eyebrow Badge */
.public-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: rgba(21, 26, 38, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
}

.badge-pulse {
    position: relative;
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background: var(--signal);
    animation: signal-pulse 2.4s ease-in-out infinite;
}

/* Logo */
.public-home-logo-wrapper {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 2rem;
}

.logo-glow {
    position: absolute;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background: rgba(51, 133, 214, 0.25);
    filter: blur(40px);
}

.public-home-logo {
    position: relative;
    display: grid;
    place-items: center;
}

.logo-float {
    animation: logo-float 5s ease-in-out infinite;
}

.public-home-logo svg {
    width: 80px;
    height: 80px;
    color: var(--primary-light);
}

/* Title */
.public-home-title {
    margin-top: 2rem;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--foreground), var(--primary-light), var(--foreground));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.public-home-subtitle {
    margin-top: 1.25rem;
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted-foreground);
}

/* CTAs */
.public-home-cta {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .public-home-cta {
        flex-direction: row;
    }
}

.public-home-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.public-home-cta-btn.primary {
    background: var(--primary);
    color: white;
    border: 1px solid transparent;
}

.public-home-cta-btn.primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(51, 133, 214, 0.3);
}

.public-home-cta-btn.secondary {
    background: rgba(21, 26, 38, 0.5);
    color: var(--foreground);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.public-home-cta-btn.secondary:hover {
    background: rgba(42, 54, 73, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Stats Bar */
.stats-bar {
    margin-top: 5rem;
    width: 100%;
    max-width: 80rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--border);
}

@media (min-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--card);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.stat-value {
    order: 1;
    font-family: monospace;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--foreground);
}

.stat-label {
    order: 2;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--muted-foreground);
}

/* Features */
.public-home-features {
    margin-top: 4rem;
    width: 100%;
    max-width: 80rem;
    display: grid;
    gap: 1.25rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .public-home-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.public-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 1.5rem;
    transition: all 0.2s;
}

.public-home-card:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 133, 214, 0.4);
    background: rgba(21, 26, 38, 0.8);
}

.card-border-highlight {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.public-home-card:hover .card-border-highlight {
    opacity: 1;
}

.public-home-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--muted);
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s;
}

.public-home-card:hover .public-home-card-icon {
    border-color: rgba(51, 133, 214, 0.4);
    color: var(--signal);
}

.public-home-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.public-home-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
    margin: 0;
}

/* Footer */
.public-home-footer {
    font-size: 0.875rem;
    color: var(--gray-600);
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    width: 100%;
    text-align: center;
}

.footer-auth {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
}

.footer-auth i {
    font-size: 0.75rem;
}

/* Animations */
@keyframes signal-dash {
    to {
        stroke-dashoffset: -1000;
    }
}

@keyframes signal-pulse {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .signal-dash,
    .badge-pulse::before,
    .logo-float {
        animation: none;
    }
}

/* ===========================================
   RBAC ACCESS CONTROL RULES
   =========================================== */
.admin-only, .operator-only {
    display: none !important;
}

body.role-admin .admin-only {
    display: inline-flex !important;
}
div.role-admin .admin-only,
section.role-admin .admin-only {
    display: block !important;
}
table.role-admin .admin-only {
    display: table-cell !important;
}
tr.role-admin .admin-only {
    display: table-row !important;
}

body.role-admin .operator-only,
body.role-operator .operator-only {
    display: inline-flex !important;
}
div.role-admin .operator-only,
section.role-admin .operator-only,
div.role-operator .operator-only,
section.role-operator .operator-only {
    display: block !important;
}


/* ===========================================
   JIRA DASHBOARD - MODERN EVOLUTION
   Cards modernos, avatares, badges e tabela
   =========================================== */

/* Summary Cards - Vers�o Moderna com �cones */
.ev-summary--modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.ev-summary-card--modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.ev-summary-card--modern:hover {
    border-color: var(--ev-primary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
    transform: translateY(-2px);
}

.ev-summary-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--ev-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.ev-summary-card--modern.tone-success .ev-summary-card__icon {
    background: rgba(4, 120, 87, 0.08);
    color: var(--ev-success);
}

.ev-summary-card--modern.tone-warning .ev-summary-card__icon {
    background: rgba(255, 140, 66, 0.08);
    color: var(--ev-warning);
}

.ev-summary-card--modern.tone-info .ev-summary-card__icon {
    background: rgba(14, 116, 144, 0.08);
    color: var(--ev-info);
}

.ev-summary-card__content {
    flex: 1;
    min-width: 0;
}

.ev-summary-card__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 13px;
}

.ev-summary-card__change {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--ev-success);
    padding: 0.25rem 0.5rem;
    background: rgba(4, 120, 87, 0.08);
    border-radius: 6px;
}

.ev-summary-card__change i {
    font-size: 11px;
}

.ev-summary-card__change.is-negative {
    color: var(--ev-danger);
    background: rgba(220, 38, 38, 0.08);
}

.ev-summary-card__change.is-neutral {
    color: var(--ev-text-muted);
    background: var(--ev-surface-soft);
}

/* Avatar Component */
.ev-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: var(--ev-primary);
    flex-shrink: 0;
    border: 2px solid var(--ev-surface);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ev-avatar--empty {
    background: var(--ev-surface-soft);
    color: var(--ev-text-muted);
    border-color: var(--ev-border);
}

.ev-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Assignee Component com Avatar */
.ev-assignee {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ev-assignee__avatar {
    flex-shrink: 0;
}

.ev-assignee__name {
    font-size: 14px;
    color: var(--ev-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modern Badges */
.ev-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ev-badge--type {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ev-badge--status {
    border: 1px solid transparent;
}

.ev-badge--secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

.ev-badge--warning {
    background: rgba(255, 140, 66, 0.1);
    color: #d97706;
    border-color: rgba(255, 140, 66, 0.2);
}

.ev-badge--success {
    background: rgba(4, 120, 87, 0.1);
    color: #047857;
    border-color: rgba(4, 120, 87, 0.2);
}

.ev-badge--error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.ev-badge--info {
    background: rgba(14, 116, 144, 0.1);
    color: #0e7490;
    border-color: rgba(14, 116, 144, 0.2);
}

/* Priority Indicators */
.ev-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--ev-text-muted);
}

.ev-priority::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.ev-priority--highest::before,
.ev-priority--critical::before {
    background: #dc2626;
}

.ev-priority--high::before {
    background: #ff8c42;
}

.ev-priority--medium::before {
    background: #3385d6;
}

.ev-priority--low::before,
.ev-priority--lowest::before {
    background: #8f9bb3;
}

.ev-priority--none::before {
    background: #d1d5db;
}

/* Modern Table */
.ev-table--modern {
    border-collapse: separate;
    border-spacing: 0;
}

.ev-table--modern thead th {
    background: var(--ev-surface-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--ev-text-muted);
    padding: 1rem 1rem;
    border-bottom: 2px solid var(--ev-border);
}

.ev-table--modern tbody tr {
    transition: background-color 0.15s ease;
}

.ev-table--modern tbody tr:hover {
    background: var(--ev-surface-soft);
}

.ev-table--modern tbody td {
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--ev-border);
    vertical-align: middle;
}

/* Issue Key Link */
.ev-issue-key {
    color: var(--ev-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.ev-issue-key:hover {
    color: var(--ev-accent);
    text-decoration: underline;
}

/* Issue Title */
.ev-issue-title {
    font-size: 14px;
    color: var(--ev-text);
    line-height: 1.5;
}

/* Date Display */
.ev-date {
    font-size: 13px;
    color: var(--ev-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Section Actions */
.ev-section__actions {
    display: flex;
    gap: 0.5rem;
}

.ev-btn--sm {
    padding: 0.45rem 0.85rem;
    font-size: 13px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ev-summary--modern {
        grid-template-columns: 1fr;
    }
    
    .ev-table--modern {
        font-size: 13px;
    }
    
    .ev-table--modern thead th,
    .ev-table--modern tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .ev-assignee__name {
        display: none;
    }
}

