:root {
    --bg-dark: #0b0f19;
    --bg-card: #151c2c;
    --primary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #242f47;
    --radius-lg: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Lateral */
.app-sidebar {
    width: 270px;
    background: #0f1623;
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    background: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
    background: var(--bg-card);
    color: var(--text-main);
}

.nav-item.active {
    border-left: 3px solid var(--primary);
}

.sidebar-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* Conteúdo Principal */
.app-main {
    flex: 1;
    padding: 40px;
    max-width: 1100px;
}

/* Título */
.main-header {
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.main-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Card Relógio Hero */
.clock-hero-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 1px solid #4338ca;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
}

.time-box {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.date-box {
    font-size: 1.2rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* Grid de Informações */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 1.8rem;
    background: #0b0f19;
    padding: 10px;
    border-radius: 10px;
}

.card-info label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-info strong {
    font-size: 1.05rem;
    color: var(--text-main);
}

@media (max-width: 850px) {
    .app-container { flex-direction: column; }
    .app-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .time-box { font-size: 3rem; }
}