/* Migrado de style.css — layout/_sidebar-legacy.css */

/* PREMIUM FINISH */

body {
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 21%),
        radial-gradient(circle at top right, rgba(30, 58, 95, 0.20), transparent 24%),
        linear-gradient(180deg, var(--premium-bg-top) 0%, #e3eaf2 34%, var(--premium-bg-bottom) 100%);
}

body::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 160px),
        radial-gradient(circle at 12% 0%, rgba(201, 168, 76, 0.10), transparent 22%),
        radial-gradient(circle at 82% 0%, rgba(30, 58, 95, 0.12), transparent 24%);
}

.topbar {
    min-height: 78px;
    padding: 12px 24px;
    background:
        linear-gradient(180deg, rgba(220, 230, 241, 0.98), rgba(208, 221, 236, 0.94));
    border-bottom-color: rgba(36, 67, 103, 0.12);
    box-shadow: 0 18px 38px rgba(12, 31, 56, 0.10);
}

.topbar::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.28), transparent);
}

.brand-side,
.brand-center {
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(236, 243, 249, 0.88));
    border: 1px solid rgba(35, 66, 103, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 26px rgba(14, 32, 56, 0.06);
}

.brand-center {
    border-radius: 20px;
    padding: 10px 20px;
}

.brand-center strong {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #17314f;
}

.brand-center span {
    color: #6c7a8e;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.topbar .btn-light,
.topbar .btn-secondary {
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.96), rgba(234, 241, 248, 0.93));
    border-color: rgba(35, 66, 103, 0.12);
}

.hero-shell,
.card,
.event-log-panel,
.sidebar,
.viewer,
.table-wrapper,
.app-modal-dialog,
.home-hero-main,
.upload-command-card,
.home-ops-card,
.home-history-card,
.bernoulli-hero,
.bernoulli-form-card,
.bernoulli-log-card,
.bernoulli-help-card,
.bernoulli-track-card {
    background:
        linear-gradient(180deg, var(--premium-surface-top), var(--premium-surface-bottom));
    border: 1px solid var(--premium-border);
    box-shadow:
        inset 0 1px 0 var(--premium-line),
        var(--premium-shadow);
}

.hero-shell,
.card,
.event-log-panel,
.sidebar,
.viewer,
.table-wrapper {
    border-radius: 28px;
}

.hero-shell {
    padding: 28px 30px;
}

.hero h1,
.home-hero-main h1,
.bernoulli-hero h1,
.section-head h2,
.card h2 {
    color: #162f4d;
    letter-spacing: -0.055em;
}

.hero p,
.card-description,
.home-hero-main p,
.bernoulli-hero p,
.sidebar-description,
.event-log-description,
.viewer-help,
.upload-command-note {
    color: #667587;
}

.eyebrow,
.section-kicker,
.panel-kicker {
    background: rgba(220, 229, 239, 0.94);
    border: 1px solid rgba(40, 70, 106, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    color: #28476c;
    font-size: 10px;
    letter-spacing: 0.09em;
}

.section-badge,
.highlight-pill,
.home-history-tag,
.item-imagem-chip,
.item-imagem-pill,
.status-badge {
    background: rgba(226, 234, 243, 0.92);
    border: 1px solid rgba(40, 70, 106, 0.10);
    color: #28476c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary,
.btn-secondary,
.btn-light,
.link-btn,
.sidebar-filter-btn,
.bernoulli-day-btn {
    min-height: 46px;
    border-radius: 15px;
}

.btn-primary {
    background: linear-gradient(180deg, #234a78, #173758);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 18px 30px rgba(18, 55, 90, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #21446d, #15324f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 20px 34px rgba(18, 55, 90, 0.20);
}

.btn-secondary,
.btn-light {
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(235, 242, 248, 0.96));
    border: 1px solid rgba(35, 66, 103, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.btn-secondary:hover,
.btn-light:hover {
    background: linear-gradient(180deg, rgba(241, 247, 252, 0.98), rgba(226, 237, 246, 0.96));
}

.input-text,
.toolbar input,
.toolbar select,
.field-block input[type="file"],
.manual-form input,
.corner-toolbar select {
    background: rgba(249, 252, 255, 0.94);
    border-color: rgba(35, 66, 103, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.upload-box,
.bernoulli-upload-box,
.corner-toolbar {
    background:
        linear-gradient(180deg, rgba(247, 251, 254, 0.98), rgba(235, 242, 248, 0.95));
    border-color: rgba(35, 66, 103, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.upload-box:hover,
.bernoulli-upload-box:hover {
    border-color: rgba(35, 66, 103, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        0 16px 28px rgba(14, 32, 56, 0.08);
}

.home-hero,
.home-dashboard,
.bernoulli-layout,
.layout-correcao {
    gap: 20px;
}

.home-hero-main {
    position: relative;
    padding: 26px 28px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(30, 58, 95, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(253, 254, 255, 0.99), rgba(234, 241, 248, 0.98));
    border: 1px solid rgba(33, 67, 108, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 20px 40px rgba(16, 33, 56, 0.08);
}

.home-hero-main::before {
    content: "";
    position: absolute;
    inset: 16px auto 16px 0;
    width: 5px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, rgba(31, 67, 109, 0.90), rgba(201, 168, 76, 0.72));
    opacity: 0.9;
}

.home-hero-main > * {
    position: relative;
    z-index: 1;
}

.home-hero-main h1 {
    font-size: 34px;
    line-height: 1.05;
    margin-top: 12px;
}

.home-hero-main p {
    margin-top: 12px;
    max-width: 620px;
    line-height: 1.62;
}

.home-hero-actions {
    margin-top: 18px;
}

.home-hero-metrics {
    margin-top: 20px;
}

.home-hero-panel {
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(201, 168, 76, 0.10), transparent 28%),
        linear-gradient(180deg, #1c4472, #132f52);
    border: 1px solid rgba(16, 37, 65, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 40px rgba(10, 25, 45, 0.20);
}

.home-hero-panel .panel-kicker {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
}

.home-flow-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-flow-item:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 26px rgba(9, 22, 40, 0.18);
}

.home-metric-card,
.summary-card,
.stat-card,
.sidebar-stat,
.home-ops-item,
.home-history-item,
.event-log-item,
.bernoulli-meta-item,
.bernoulli-rule-item,
.bernoulli-mini-card,
.bernoulli-log-stat,
.log-summary-item,
.item-imagem {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 251, 0.98));
    border: 1px solid rgba(35, 66, 103, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 24px rgba(16, 33, 56, 0.05);
}

.home-metric-card,
.home-ops-item,
.home-history-item,
.event-log-item,
.item-imagem {
    border-radius: 18px;
}

.home-history-item:hover,
.summary-card:hover,
.home-ops-item:hover,
.event-log-item:hover,
.item-imagem:hover,
.bernoulli-mini-card:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 16px 28px rgba(16, 33, 56, 0.06);
}

.upload-command-card,
.home-ops-card,
.home-history-card,
.home-event-panel {
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.06), transparent 20%),
        linear-gradient(180deg, rgba(251, 253, 255, 0.99), rgba(236, 243, 249, 0.98));
    border: 1px solid rgba(35, 66, 103, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 18px 30px rgba(16, 33, 56, 0.06);
}

.upload-dropzone-home {
    background:
        radial-gradient(circle at top right, rgba(31, 67, 109, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(252, 254, 255, 0.99), rgba(238, 244, 249, 0.99));
    border: 1px solid rgba(35, 66, 103, 0.12);
    min-height: 176px;
}

.home-history-tag {
    background: linear-gradient(180deg, rgba(226, 235, 245, 0.98), rgba(213, 225, 239, 0.98));
    color: #203e63;
}

.home-history-action {
    background: linear-gradient(180deg, rgba(236, 243, 249, 0.98), rgba(221, 232, 242, 0.98));
    border: 1px solid rgba(35, 66, 103, 0.10);
}

.toolbar {
    background:
        radial-gradient(circle at top right, rgba(31, 67, 109, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(236, 243, 249, 0.98));
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(236, 243, 249, 0.98));
}

.sidebar-filter-btn {
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(237, 243, 248, 0.96));
}

.sidebar-filter-btn.ativo,
.bernoulli-day-btn.active,
.corner-btn.ativo {
    background: linear-gradient(180deg, #224773, #173555);
    border-color: rgba(24, 53, 85, 0.92);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(18, 55, 90, 0.16);
}

.viewer {
    background:
        radial-gradient(circle at top right, rgba(31, 67, 109, 0.05), transparent 22%),
        linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(236, 243, 249, 0.98));
}

.image-area {
    background: linear-gradient(180deg, #d8e2ec, #ced9e4);
    border-radius: 20px;
}

.item-imagem.ativo {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 26%),
        linear-gradient(180deg, rgba(207, 223, 239, 0.68), rgba(190, 209, 228, 0.60)) !important;
    border-color: rgba(74, 109, 146, 0.20) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.70),
        0 16px 28px rgba(18, 55, 90, 0.08) !important;
}

.item-imagem.ativo .item-imagem-title,
.item-imagem.ativo .item-imagem-subtitle,
.item-imagem.ativo .item-imagem-detail {
    color: #2a4667 !important;
}

.item-imagem.ativo .item-imagem-pill {
    background: rgba(241, 247, 252, 0.86) !important;
    border-color: rgba(76, 112, 151, 0.18) !important;
    color: #25486f !important;
}

.progress-card,
.log-processamento {
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(235, 242, 248, 0.98));
}

.progress-fill,
.log-processamento .progress-fill {
    background: linear-gradient(90deg, #c8a455, #2b5586);
}

.table-wrapper {
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(238, 244, 249, 0.98));
}

.data-table th {
    background: linear-gradient(180deg, #d6e2ee, #c8d8e8);
    color: #1b3655;
}

.data-table td {
    border-bottom-color: rgba(43, 72, 109, 0.10);
}

.data-table tbody tr:hover td {
    background: rgba(232, 239, 246, 0.78);
}

.app-modal-dialog {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99), rgba(239, 245, 250, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 34px 90px rgba(18, 38, 64, 0.24);
}

.bernoulli-hero {
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(238, 244, 249, 0.98));
}

.bernoulli-day-toggle {
    background: rgba(226, 234, 243, 0.86);
    border: 1px solid rgba(35, 66, 103, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bernoulli-day-btn {
    border-radius: 12px;
}

@media (max-width: 900px) {
    .topbar {
        min-height: auto;
    }

    .hero-shell,
    .card,
    .event-log-panel,
    .sidebar,
    .viewer,
    .table-wrapper {
        border-radius: 24px;
    }

    .home-hero-main,
    .home-hero-panel {
        padding: 24px;
    }
}

.item-imagem.ativo .item-imagem-chip {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
