/* Design System e Estética Premium Glassmorphism */
:root {
    --bg-gradient: radial-gradient(circle at 50% 50%, #121026 0%, #07060f 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f5f5f7;
    --text-muted: #8e8e93;
    --primary-glow: #8e2de2;
    --secondary-glow: #4a00e0;
    --glow-color: rgba(142, 45, 226, 0.4);
    --font-outfit: 'Outfit', sans-serif;
    --success: #30d158;
    --warning: #ff9f0a;
}

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

body {
    background: var(--bg-gradient);
    font-family: var(--font-outfit);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
}

.glass-container {
    background: rgba(15, 12, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.logo-area {
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary-glow);
    filter: blur(40px);
    opacity: 0.6;
    top: -10px;
    left: -10px;
    z-index: -1;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a2a2d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.system-status {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

/* Grid de Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(142, 45, 226, 0.3);
}

.metric-card.highlight {
    background: linear-gradient(135deg, rgba(74, 0, 224, 0.15) 0%, rgba(142, 45, 226, 0.15) 100%);
    border-color: rgba(142, 45, 226, 0.3);
}

.metric-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.metric-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dashboard Columns */
.dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.card-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
}

.card-box h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.scroll-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Scrollbar styling */
.scroll-list::-webkit-scrollbar {
    width: 6px;
}
.scroll-list::-webkit-scrollbar-track {
    background: transparent;
}
.scroll-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.loading {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.case-item, .content-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px;
    transition: background 0.2s ease;
}

.case-item:hover, .content-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.case-header, .content-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.case-user {
    color: var(--text-main);
    font-weight: 600;
}

.case-confidence {
    color: var(--success);
    font-weight: bold;
}

.case-body, .content-body {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.case-action-btn {
    background: var(--primary-glow);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-outfit);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.case-action-btn:hover {
    opacity: 0.9;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}
