/* Migrado de style.css — pages/_bernoulli-legacy.css */

/* HOME REDESIGN */

.page-home {
    max-width: 1320px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 20px;
    margin-bottom: 22px;
}

.home-hero-main,
.home-hero-panel,
.home-ops-card,
.home-history-card {
    border-radius: 18px;
}

.home-hero-main {
    position: relative;
    overflow: hidden;
    padding: 24px 26px 22px;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.11), transparent 26%),
        radial-gradient(circle at bottom left, rgba(30, 58, 95, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(241, 246, 251, 0.96));
    border: 1px solid rgba(50, 76, 109, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 36px rgba(18, 38, 64, 0.08);
}

.home-hero-main::after {
    content: "";
    position: absolute;
    inset: 18px auto 18px 0;
    width: 5px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0.95;
}

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

.home-hero-main h1 {
    margin: 12px 0 0;
    max-width: 660px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--primary-dark);
}

.home-hero-main p {
    max-width: 600px;
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.home-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.home-metric-card {
    padding: 15px 16px;
    border-radius: 15px;
    border: 1px solid rgba(53, 78, 110, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 252, 0.84));
    backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 8px 18px rgba(20, 43, 74, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-metric-card:hover {
    border-color: rgba(31, 67, 109, 0.20);
    box-shadow: 0 12px 22px rgba(15, 37, 77, 0.06);
}

.home-metric-card span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.home-metric-card strong {
    display: block;
    margin-top: 7px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--primary-dark);
}

.home-metric-card p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

.home-hero-side {
    display: flex;
}

.home-hero-panel {
    width: 100%;
    padding: 24px;
    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, #1a3d69, #102949);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 22px 38px rgba(15, 37, 77, 0.18);
    border: 1px solid rgba(18, 42, 81, 0.28);
    position: relative;
}

.home-hero-panel::before,
.upload-command-card::before,
.home-ops-card::before,
.home-history-card::before,
.bernoulli-form-card::before,
.bernoulli-log-card::before,
.bernoulli-help-card::before,
.bernoulli-track-card::before {
    content: none;
}

.home-hero-panel h2 {
    margin: 10px 0 0;
    font-size: 25px;
    line-height: 1.15;
    color: #ffffff;
}

.home-hero-panel p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.home-flow-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.home-flow-item {
    padding: 15px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-flow-item:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 20px rgba(8, 24, 52, 0.18);
}

.home-flow-item strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.home-flow-item span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.home-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    grid-template-areas:
        "upload checklist"
        "history history";
    gap: 20px;
    align-items: stretch;
}

.home-main-column,
.home-side-column {
    display: grid;
    gap: 18px;
}

.upload-command-card {
    grid-area: upload;
}

.home-checklist-card {
    grid-area: checklist;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.home-checklist-card .home-ops-list {
    flex: 1;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
}

.home-checklist-card .home-ops-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.upload-command-card {
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(30, 58, 95, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(242, 247, 251, 0.96));
    border: 1px solid rgba(50, 76, 109, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 16px 30px rgba(18, 38, 64, 0.06);
}

.upload-command-head {
    margin-bottom: 12px;
}

.upload-command-form {
    gap: 18px;
}

.upload-dropzone-home {
    min-height: 176px;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(23, 64, 124, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(245, 249, 252, 0.96));
    border: 1px solid rgba(60, 86, 120, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.upload-dropzone-copy {
    display: grid;
    gap: 8px;
}

.upload-dropzone-home span {
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 0;
}

.upload-dropzone-home small {
    max-width: 620px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.upload-command-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.upload-command-bottom {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: 14px;
    align-items: stretch;
}

.home-event-inline {
    min-height: 0;
    padding: 16px 18px;
}

.home-event-inline .event-log-head {
    margin-bottom: 12px;
}

.home-event-inline .event-log-head h2 {
    font-size: 20px;
}

.home-event-inline .event-log-list {
    max-height: 148px;
}

.upload-command-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.log-processamento-home {
    margin-top: 0;
}

.home-ops-card {
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(241, 246, 250, 0.96));
    border: 1px solid rgba(50, 76, 109, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 14px 26px rgba(18, 38, 64, 0.06);
}

.home-ops-head h2 {
    margin: 10px 0 0;
    font-size: 23px;
    color: var(--primary-dark);
}

.home-ops-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.home-ops-item {
    padding: 15px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 252, 0.92));
    border: 1px solid rgba(53, 78, 110, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-ops-item:hover {
    border-color: rgba(31, 67, 109, 0.20);
    box-shadow: 0 12px 22px rgba(15, 37, 77, 0.06);
}

.home-ops-item strong {
    display: block;
    font-size: 14px;
    color: var(--primary-dark);
}

.home-ops-item p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.home-event-panel {
    padding: 20px;
    min-height: 280px;
    background:
        radial-gradient(circle at top right, rgba(30, 58, 95, 0.05), transparent 22%),
        linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(241, 246, 250, 0.96));
}

.home-history-card {
    grid-area: history;
    margin-top: 0;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.05), transparent 22%),
        linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(241, 246, 250, 0.96));
    border: 1px solid rgba(50, 76, 109, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 16px 28px rgba(18, 38, 64, 0.06);
}

.home-history-toolbar {
    margin-bottom: 16px;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 240px) auto;
    align-items: end;
}

.home-history-filter-block {
    min-width: 0;
}

.home-history-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: 620px;
    overflow: auto;
    padding-right: 6px;
}

.home-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(53, 78, 110, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 252, 0.92));
    color: var(--text);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: 0.2s ease;
}

.home-history-item:hover {
    border-color: rgba(31, 67, 109, 0.22);
    box-shadow: 0 14px 24px rgba(16, 40, 77, 0.07);
}

.home-history-copy {
    min-width: 0;
}

.home-history-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-history-copy strong {
    display: block;
    font-size: 16px;
    color: var(--primary-dark);
    word-break: break-word;
}

.home-history-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(228, 236, 246, 0.92), rgba(214, 226, 239, 0.92));
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-history-copy span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.home-history-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 9px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(240, 246, 252, 0.96), rgba(224, 234, 244, 0.94));
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(43, 72, 109, 0.10);
}

@media (max-width: 1100px) {
    .home-hero,
    .home-dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "upload"
            "checklist"
            "history";
    }

    .upload-command-bottom {
        grid-template-columns: 1fr;
    }

    .home-history-toolbar {
        grid-template-columns: 1fr;
    }

    .home-checklist-card .home-ops-list {
        grid-template-rows: none;
    }
}

@media (max-width: 780px) {
    .home-hero-main {
        padding: 22px;
    }

    .home-hero-main h1 {
        font-size: 29px;
    }

    .home-hero-metrics {
        grid-template-columns: 1fr;
    }
}
