/* =============================================================================
   SOC - Security Operations Center Styles
   Dark Command Center Theme - REFINED UI
   ============================================================================= */

/* -----------------------------------------------------------------------------
   IMPORTS - TIPOGRAFIA MODERNA
   ----------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* -----------------------------------------------------------------------------
   VARIAVEIS CSS
   ----------------------------------------------------------------------------- */
:root {
    /* Cores Base */
    --soc-bg-dark: #0a0f1a;
    --soc-bg-darker: #060a12;
    --soc-bg-card: #111827;
    --soc-bg-card-hover: #1f2937;
    --soc-bg-elevated: #1a2332;
    --soc-border: #1e293b;
    --soc-border-light: #334155;

    /* Texto */
    --soc-text: #f8fafc;
    --soc-text-secondary: #e2e8f0;
    --soc-text-muted: #94a3b8;
    --soc-text-dim: #64748b;

    /* Cores de Severidade */
    --soc-critical: #ef4444;
    --soc-critical-glow: rgba(239, 68, 68, 0.4);
    --soc-high: #f97316;
    --soc-high-glow: rgba(249, 115, 22, 0.4);
    --soc-medium: #eab308;
    --soc-medium-glow: rgba(234, 179, 8, 0.4);
    --soc-low: #22c55e;
    --soc-low-glow: rgba(34, 197, 94, 0.4);
    --soc-info: #3b82f6;
    --soc-info-glow: rgba(59, 130, 246, 0.4);
    --soc-purple: #8b5cf6;

    /* Fontes */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

/* -----------------------------------------------------------------------------
   RESET E BASE
   ----------------------------------------------------------------------------- */
.soc-container {
    font-family: var(--font-primary);
    background: var(--soc-bg-dark);
    background-image:
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.02) 0%, transparent 50%);
    min-height: calc(100vh - 56px);
    padding: 0;
    margin: -20px;
    color: var(--soc-text);
    line-height: 1.5;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.soc-container * {
    box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
   HEADER - COMMAND CENTER
   ----------------------------------------------------------------------------- */
.soc-header {
    background: linear-gradient(180deg, var(--soc-bg-card) 0%, var(--soc-bg-dark) 100%);
    border-bottom: 1px solid var(--soc-border);
    padding: 16px 24px 20px;
    position: relative;
}

.soc-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--soc-info), transparent);
    opacity: 0.3;
}

.soc-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.soc-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.soc-header-title i {
    font-size: 32px;
    background: linear-gradient(135deg, var(--soc-info) 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px var(--soc-info-glow));
}

.soc-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--soc-text) 0%, var(--soc-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.soc-header-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Sound Toggle Button */
.sound-toggle-container {
    display: flex;
    align-items: center;
}

.sound-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--soc-bg-darker);
    border: 1px solid var(--soc-border);
    color: var(--soc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.sound-toggle-btn:hover {
    background: var(--soc-bg-elevated);
    color: var(--soc-text);
    border-color: var(--soc-border-light);
}

.sound-toggle-btn.sound-enabled {
    color: var(--soc-low);
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
}

.sound-toggle-btn.sound-disabled {
    color: var(--soc-text-dim);
    border-color: var(--soc-border);
}

.sound-toggle-btn i {
    font-size: 16px;
}

.soc-timestamp {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soc-text-muted);
    background: var(--soc-bg-darker);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--soc-border);
    letter-spacing: 1px;
}

.soc-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-online {
    background: var(--soc-low);
    box-shadow: 0 0 12px var(--soc-low-glow);
    animation: pulse-glow 2s ease-in-out infinite;
}

.status-online::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--soc-low);
    opacity: 0;
    animation: pulse-ring 2s ease-in-out infinite;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--soc-low);
    text-transform: uppercase;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--soc-low-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 20px var(--soc-low-glow); }
}

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

/* -----------------------------------------------------------------------------
   SEVERITY CARDS - REFINED
   ----------------------------------------------------------------------------- */
.severity-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.severity-card {
    background: var(--soc-bg-card);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 160px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.severity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.severity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--soc-border-light);
}

.severity-card:hover::before {
    opacity: 0.5;
}

.severity-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all var(--transition-normal);
}

.severity-card:hover .severity-icon {
    transform: scale(1.1);
}

.severity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.severity-count {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.severity-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--soc-text-muted);
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   BODY - LAYOUT GRID
   ----------------------------------------------------------------------------- */
.soc-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 16px;
    padding: 16px 20px 40px;
    min-height: calc(100vh - 200px);
    overflow: visible;
}

.soc-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
}

/* -----------------------------------------------------------------------------
   PANELS - GLASSMORPHISM
   ----------------------------------------------------------------------------- */
.soc-panel {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.soc-panel:hover {
    border-color: var(--soc-border-light);
    box-shadow: var(--shadow-glow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--soc-border);
    background: rgba(0, 0, 0, 0.3);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--soc-text-secondary);
    text-transform: uppercase;
}

.panel-title i {
    color: var(--soc-info);
    font-size: 1rem;
}

/* -----------------------------------------------------------------------------
   ALERT FEED - LIVE UPDATES
   ----------------------------------------------------------------------------- */
.alert-feed-panel {
    flex: 1;
    min-height: 0;
}

/* Feed de alertas expandido - ocupa mais espaço vertical */
.alert-feed-panel-full {
    flex: 1;
    min-height: 350px;
    max-height: 550px;
}

.alert-feed-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 500px;
    min-height: 300px;
}

.alert-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-item {
    background: var(--soc-bg-darker);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    transition: all var(--transition-normal);
    cursor: pointer;
    animation: slideIn 0.3s ease-out;
}

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

.alert-item:hover {
    background: var(--soc-bg-card-hover);
    border-color: var(--soc-info);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* Alerta clicavel */
.clickable-alert {
    position: relative;
}

.clickable-alert::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soc-text-dim);
    font-size: 0.7rem;
    opacity: 0;
    transition: all var(--transition-fast);
}

.clickable-alert:hover::after {
    opacity: 1;
    right: 8px;
    color: var(--soc-info);
}

.clickable-alert:active {
    transform: translateX(2px) scale(0.99);
}

.alert-indicators {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.alert-severity-indicator {
    width: 4px;
    height: 32px;
    border-radius: 2px;
    box-shadow: 0 0 8px currentColor;
}

.alert-source-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.alert-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--soc-text);
    margin: 0 0 6px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alert-time {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--soc-text-dim);
}

.live-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.pulse-live {
    animation: pulse-live 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--soc-critical-glow);
}

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

/* -----------------------------------------------------------------------------
   WORK QUEUE - TASK LIST
   ----------------------------------------------------------------------------- */
.work-queue-panel {
    flex: 0.6;
    min-height: 200px;
}

/* Fila de trabalho expandida - na coluna direita */
.work-queue-panel-full {
    flex: 1;
    min-height: 300px;
    max-height: 450px;
}

.work-queue-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 400px;
    min-height: 200px;
}

.queue-badge {
    background: linear-gradient(135deg, var(--soc-critical), #dc2626);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 12px var(--soc-critical-glow);
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    background: var(--soc-bg-darker);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
}

.queue-item:hover {
    background: var(--soc-bg-card-hover);
    border-color: var(--soc-border-light);
    transform: translateX(4px);
}

.queue-priority {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

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

.queue-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--soc-text);
    margin-bottom: 2px;
}

.queue-wait-time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--soc-text-dim);
}

.queue-actions {
    display: flex;
    gap: 4px;
}

.btn-queue-action {
    color: var(--soc-text-muted);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-queue-action:hover {
    color: var(--soc-info);
    background: rgba(59, 130, 246, 0.1);
}

.btn-queue-action.text-success:hover {
    color: var(--soc-low);
    background: rgba(34, 197, 94, 0.1);
}

.btn-queue-action.text-warning:hover {
    color: var(--soc-high);
    background: rgba(249, 115, 22, 0.1);
}

/* -----------------------------------------------------------------------------
   METRICS SOC - DESIGN PREMIUM
   ----------------------------------------------------------------------------- */
.metrics-panel {
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.metrics-panel .panel-header {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
    background: transparent;
}

.soc-metric-card {
    background: linear-gradient(145deg, #0c1322 0%, #111827 100%);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

/* Brilho superior colorido */
.soc-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    opacity: 0.7;
}

/* Glow effect no fundo */
.soc-metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.soc-metric-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(59, 130, 246, 0.15);
}

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

/* Icone decorativo */
.metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #60a5fa;
}

.metric-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.metric-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.metric-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
}

.metric-trend {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.15);
}

.metric-trend.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.metric-trend.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.metric-trend i {
    font-size: 0.7rem;
}

/* Variantes de cores para cada métrica */
.soc-metric-card:nth-child(1)::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.soc-metric-card:nth-child(2)::before {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.soc-metric-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.soc-metric-card:nth-child(4)::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

/* -----------------------------------------------------------------------------
   TIMELINE - CHART PANEL
   ----------------------------------------------------------------------------- */
.timeline-panel {
    flex: 1;
    min-height: 0;
}

.timeline-container {
    padding: 12px;
}

.timeline-filter-select {
    background: var(--soc-bg-darker) !important;
    border: 1px solid var(--soc-border) !important;
    color: var(--soc-text) !important;
    font-family: var(--font-primary) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm) !important;
    width: auto !important;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timeline-filter-select:hover {
    border-color: var(--soc-info) !important;
}

.timeline-filter-select:focus {
    border-color: var(--soc-info) !important;
    box-shadow: 0 0 0 3px var(--soc-info-glow) !important;
}

/* -----------------------------------------------------------------------------
   ATIVIDADE RECENTE
   ----------------------------------------------------------------------------- */
.activity-panel {
    flex: 0 0 auto;
}

.activity-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}

.recent-activity-container {
    padding: 0;
}

.empty-activity {
    padding: 30px;
}

/* -----------------------------------------------------------------------------
   CASES - INVESTIGATION
   ----------------------------------------------------------------------------- */
.cases-panel {
    flex: 0.5;
    min-height: 180px;
}

.cases-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-item {
    background: var(--soc-bg-darker);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.case-item:hover {
    background: var(--soc-bg-card-hover);
    border-color: var(--soc-info);
    transform: translateX(4px);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.case-priority-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.case-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--soc-text);
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-status {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.case-assignee {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--soc-text-dim);
}

.btn-new-case {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-new-case:hover {
    transform: scale(1.05);
}

/* -----------------------------------------------------------------------------
   WATCHLIST
   ----------------------------------------------------------------------------- */
.watchlist-panel {
    flex: 0.5;
    min-height: 180px;
}

.watchlist-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.watchlist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.watchlist-item {
    background: var(--soc-bg-darker);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
}

.watchlist-item:hover {
    background: var(--soc-bg-card-hover);
    border-color: var(--soc-border-light);
}

.watchlist-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.watchlist-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watchlist-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--soc-text);
}

.watchlist-hits {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--soc-text-muted);
    background: var(--soc-bg-card);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.btn-icon {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------------
   THREATS - TOP RISKS
   ----------------------------------------------------------------------------- */
.threats-panel {
    flex: 1;
    min-height: 0;
}

.threats-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.threats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.threat-item {
    background: var(--soc-bg-darker);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition-normal);
}

.threat-item:hover {
    background: var(--soc-bg-card-hover);
}

.threat-rank {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--soc-text-dim);
    min-width: 28px;
}

.threat-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--soc-text);
}

.threat-stats {
    display: flex;
    align-items: center;
    gap: 6px;
}

.threat-count {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--soc-text);
}

/* -----------------------------------------------------------------------------
   EMPTY STATES
   ----------------------------------------------------------------------------- */
.empty-feed,
.empty-queue,
.empty-cases,
.empty-watchlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-feed i,
.empty-queue i,
.empty-cases i,
.empty-watchlist i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-feed p,
.empty-queue p,
.empty-cases p,
.empty-watchlist p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soc-text-dim);
}

/* -----------------------------------------------------------------------------
   MODALS - REFINED DESIGN COM TEXTO VISIVEL
   ----------------------------------------------------------------------------- */
.soc-modal .modal-content {
    background: #1a2332;
    border: 1px solid var(--soc-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.soc-modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid var(--soc-border-light);
    color: #ffffff;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.soc-modal-header i {
    font-size: 1.4rem;
    color: #60a5fa;
}

.soc-modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 700;
}

.soc-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.soc-modal-header .btn-close:hover {
    opacity: 1;
}

.soc-modal-body {
    background: #1e293b;
    color: #f1f5f9;
    padding: 28px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Texto principal do modal - BEM VISIVEL */
.soc-modal-body p,
.soc-modal-body span,
.soc-modal-body div {
    color: #e2e8f0;
}

.soc-modal-body strong,
.soc-modal-body b {
    color: #ffffff;
    font-weight: 600;
}

.soc-modal-body h5,
.soc-modal-body h6 {
    color: #ffffff;
    font-weight: 700;
}

.soc-modal-body .form-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.soc-modal-body .form-control,
.soc-modal-body .form-select {
    background: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.soc-modal-body .form-control:focus,
.soc-modal-body .form-select:focus {
    background: #0f172a;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.soc-modal-body .form-control::placeholder {
    color: #64748b;
}

.soc-modal-body textarea.form-control {
    min-height: 100px;
    line-height: 1.6;
}

.soc-modal-body .card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.soc-modal-body .card-header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.soc-modal-body .card-header i {
    color: #60a5fa;
    font-size: 1.1rem;
}

.soc-modal-body .card-body {
    padding: 18px;
    color: #e2e8f0;
    line-height: 1.7;
}

.soc-modal-body .card-body p {
    margin-bottom: 12px;
}

/* Texto da analise LLM */
.soc-modal-body .llm-summary-content,
.soc-modal-body .alert-analysis {
    color: #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Listas dentro do modal */
.soc-modal-body ul,
.soc-modal-body ol {
    color: #e2e8f0;
    padding-left: 24px;
    margin: 12px 0;
}

.soc-modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Badges no modal */
.soc-modal-body .badge {
    font-weight: 600;
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Alertas/Info boxes no modal */
.soc-modal-body .alert {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
    border-radius: var(--radius-sm);
}

.soc-modal-footer {
    background: #0f172a;
    border-top: 1px solid #334155;
    padding: 18px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.soc-modal-footer .btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.soc-modal-footer .btn:hover {
    transform: translateY(-2px);
}

.soc-modal-footer .btn-secondary {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
}

.soc-modal-footer .btn-secondary:hover {
    background: #475569;
    color: #ffffff;
}

.soc-modal-footer .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.soc-modal-footer .btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.soc-modal-footer .btn-warning {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.soc-modal-footer .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

/* Modal Animation */
.soc-modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s ease-out;
}

.soc-modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Resolution Options in Modal */
.resolution-options .form-check {
    background: var(--soc-bg-darker);
    border: 1px solid var(--soc-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 40px;
    margin-bottom: 8px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.resolution-options .form-check:hover {
    border-color: var(--soc-info);
    background: var(--soc-bg-card-hover);
}

.resolution-options .form-check-input:checked + .form-check-label {
    color: var(--soc-info);
}

/* LLM Summary Card */
.llm-summary-content {
    line-height: 1.7;
}

.llm-summary-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.llm-summary-content li {
    margin-bottom: 6px;
}

/* -----------------------------------------------------------------------------
   PREMIUM ALERT MODAL - DESIGN EXCLUSIVO
   ----------------------------------------------------------------------------- */
.premium-alert-modal .modal-content {
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(59, 130, 246, 0.1);
}

.premium-alert-modal .modal-header {
    display: none; /* Usando header customizado no body */
}

.premium-alert-modal .premium-modal-body {
    background: #0f172a;
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
}

.premium-alert-modal .premium-modal-body::-webkit-scrollbar {
    width: 6px;
}

.premium-alert-modal .premium-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.premium-alert-modal .premium-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.premium-alert-modal .premium-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Action Buttons Premium */
.premium-action-btn {
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.premium-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    filter: brightness(1.1);
}

.premium-action-btn:active {
    transform: translateY(0);
}

/* Info Box Hover */
.info-box {
    transition: background 0.2s ease;
}

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

/* Markdown inside modal */
.premium-modal-body p {
    margin-bottom: 0.5rem;
}

.premium-modal-body strong {
    color: #60a5fa;
}

/* Close button styling */
.premium-alert-modal .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    filter: invert(1);
    opacity: 0.7;
    z-index: 10;
    transition: opacity 0.2s ease;
}

.premium-alert-modal .btn-close:hover {
    opacity: 1;
}

/* -----------------------------------------------------------------------------
   SCROLLBARS - CUSTOM
   ----------------------------------------------------------------------------- */
.soc-container ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.soc-container ::-webkit-scrollbar-track {
    background: var(--soc-bg-darker);
    border-radius: 4px;
}

.soc-container ::-webkit-scrollbar-thumb {
    background: var(--soc-border-light);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.soc-container ::-webkit-scrollbar-thumb:hover {
    background: var(--soc-text-dim);
}

/* Firefox */
.soc-container * {
    scrollbar-width: thin;
    scrollbar-color: var(--soc-border-light) var(--soc-bg-darker);
}

/* -----------------------------------------------------------------------------
   TABS - WORK QUEUE
   ----------------------------------------------------------------------------- */
.soc-tabs {
    border-bottom: 1px solid var(--soc-border);
    margin-bottom: 0 !important;
    padding: 0 12px;
}

.soc-tabs .nav-link {
    color: var(--soc-text-muted);
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
}

.soc-tabs .nav-link:hover {
    color: var(--soc-text);
    background: var(--soc-bg-card-hover);
}

.soc-tabs .nav-link.active {
    color: var(--soc-info);
    background: transparent;
}

.soc-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--soc-info), var(--soc-purple));
    border-radius: 2px 2px 0 0;
}

.soc-tab-label {
    font-size: 0.7rem !important;
}

.soc-tab-active {
    color: var(--soc-info) !important;
    font-weight: 700 !important;
}

/* -----------------------------------------------------------------------------
   ANALYST PANEL
   ----------------------------------------------------------------------------- */
.analyst-panel {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    margin-top: 10px;
}

.analyst-metrics-container {
    padding: 12px;
}

.analyst-metrics-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.analyst-metrics-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.analyst-metric-box {
    flex: 1;
    background: var(--soc-bg-darker);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
    border: 1px solid var(--soc-border);
    transition: all var(--transition-fast);
}

.analyst-metric-box:hover {
    border-color: var(--soc-border-light);
}

.analyst-metric-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--soc-text);
    line-height: 1.2;
}

.analyst-metric-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--soc-text-muted);
    margin-top: 6px;
}

/* My Alerts Tab */
.my-alert-item {
    border-left: 3px solid var(--soc-info);
}

.my-alert-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* My Cases Tab */
.my-case-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--soc-bg-darker);
    border-radius: var(--radius-md);
    border: 1px solid var(--soc-border);
    transition: all var(--transition-normal);
}

.my-case-item:hover {
    background: var(--soc-bg-card-hover);
    border-color: var(--soc-border-light);
}

.my-case-item .case-priority {
    width: 4px;
    height: 44px;
    border-radius: 2px;
    margin-right: 12px;
}

.my-case-item .case-content {
    flex: 1;
}

.my-case-item .case-actions {
    display: flex;
    gap: 6px;
}

/* Queue Item Badges */
.queue-item .badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   ----------------------------------------------------------------------------- */
#soc-feedback-toast {
    background: var(--soc-bg-card) !important;
    border: 1px solid var(--soc-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

#soc-feedback-toast .toast-header {
    background: var(--soc-bg-darker) !important;
    color: var(--soc-text) !important;
    border-bottom: 1px solid var(--soc-border) !important;
}

#soc-feedback-toast .toast-body {
    color: var(--soc-text-secondary) !important;
}

/* -----------------------------------------------------------------------------
   RESPONSIVE DESIGN
   ----------------------------------------------------------------------------- */
@media (max-width: 1400px) {
    .soc-body {
        grid-template-columns: 1fr 1.2fr 1fr;
    }

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

@media (max-width: 1200px) {
    .soc-body {
        grid-template-columns: 1fr 1fr;
        height: auto;
        overflow: auto;
    }

    .soc-right-column {
        grid-column: span 2;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .soc-right-column .soc-panel {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .soc-header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .soc-header-info {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .soc-container {
        margin: -10px;
    }

    .soc-header {
        padding: 12px 16px 16px;
    }

    .soc-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .severity-cards {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .severity-card {
        min-width: auto;
        padding: 12px;
    }

    .severity-count {
        font-size: 1.6rem;
    }

    .soc-body {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .soc-right-column {
        grid-column: span 1;
        flex-direction: column;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .soc-metric-card {
        padding: 14px 12px;
    }

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

    .soc-modal-body {
        padding: 16px;
    }

    .soc-modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

    .soc-modal-footer .btn {
        width: 100%;
    }
}

/* -----------------------------------------------------------------------------
   ANIMATIONS - MICRO INTERACTIONS
   ----------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.soc-panel {
    animation: fadeIn 0.4s ease-out;
}

.severity-card {
    animation: slideUp 0.4s ease-out;
    animation-fill-mode: both;
}

.severity-card:nth-child(1) { animation-delay: 0.1s; }
.severity-card:nth-child(2) { animation-delay: 0.15s; }
.severity-card:nth-child(3) { animation-delay: 0.2s; }
.severity-card:nth-child(4) { animation-delay: 0.25s; }

/* Hover Effects */
.soc-panel,
.severity-card,
.alert-item,
.queue-item,
.case-item,
.watchlist-item,
.threat-item,
.soc-metric-card {
    will-change: transform, box-shadow;
}

/* Focus States for Accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--soc-info);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --soc-border: #4b5563;
        --soc-text-muted: #d1d5db;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
