/* style.css
   Design System e Visual Premium para o Portal TAPE | Arandu Studio (SaaS) */

:root {
    --bg-primary: #0F1214;
    --bg-secondary: #171B1E;
    --bg-card: #1E2328;
    --border-color: #2D343A;
    --text-primary: #FFFFFF;
    --text-secondary: #90A0AD;
    --accent-teal: #00B7C3;
    --accent-gold: #D4A373;
    --accent-green: #2E7D32;
    --accent-red: #C62828;
    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --glass-bg: rgba(30, 35, 40, 0.65);
    --glass-blur: blur(12px);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Estilizada (SaaS) */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 25px;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.brand-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.brand-logo {
    width: 45px;
    height: 45px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 8px rgba(0, 183, 195, 0.3));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
}

.navigation ul {
    list-style: none;
}

.navigation li {
    margin-bottom: 8px;
}

.navigation a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navigation li.active a,
.navigation a:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
    padding-left: 20px;
    border-left: 3px solid var(--accent-teal);
}

.manifesto-card {
    margin-top: auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.manifesto-card .quote {
    font-size: 13px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.manifesto-card .quote-author {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
}

/* Painel de Conteúdo Principal */
.main-content {
    margin-left: 280px;
    flex-grow: 1;
    padding: 40px;
    max-width: 1400px;
}

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

.main-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-header .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Indicador de Status do Revit */
.sync-status {
    display: flex;
    align-items: center;
    background-color: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
}

.sync-status .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.8s infinite;
}

.sync-status .status-text {
    font-size: 12px;
    font-weight: 600;
    color: #81C784;
}

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

.metric-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-teal);
}

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

.metric-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0;
}

.metric-change {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric-change.positive {
    color: #81C784;
}

/* Componentes de Cards e UI */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.selector-card {
    display: flex;
    flex-direction: column;
}

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

.custom-select {
    width: 100%;
    height: 45px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
}

.btn-secondary:hover {
    background-color: var(--accent-teal);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 183, 195, 0.4);
}

/* Gráficos SaaS */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.chart-card {
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Tabela de Dados */
.table-card h3 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(45, 52, 58, 0.4);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.data-table td {
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: rgba(46, 125, 50, 0.15);
    color: #81C784;
}

/* Animações */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

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

.card, .metric-card {
    animation: fadeIn 0.5s ease forwards;
}
