.dashboard-page {
    color: #ffffff;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.welcome-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 123, 0, 0.08);
    border: 1px solid rgba(255, 123, 0, 0.16);
    color: #ff7b00;
    box-shadow: 0 0 35px rgba(255, 123, 0, 0.15);
}

.welcome-block h1 {
    margin: 0;
    font-size: 20px;
}

.welcome-block p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.66);
}

.date-card {
    min-width: 190px;
    display: grid;
    align-content: center;
    justify-items: end;
    padding: 13px 18px;
    border-radius: 13px;
    background: rgba(8, 15, 26, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.date-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.date-card strong {
    margin-top: 4px;
    font-size: 14px;
}

.active-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 13px;
    background: rgba(255, 123, 0, 0.10);
    border: 1px solid rgba(255, 123, 0, 0.28);
}

.active-filter-bar span {
    color: rgba(255,255,255,0.58);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.active-filter-bar b {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 12px;
}

.active-filter-bar a {
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ff7b00;
    color: #05070d;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-main-string {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 12px;
    background:
        radial-gradient(circle at right, rgba(255, 123, 0, 0.14), transparent 22%),
        linear-gradient(90deg, rgba(255, 123, 0, 0.035), rgba(255, 123, 0, 0.09));
    border: 1px solid rgba(255, 123, 0, 0.32);
    overflow: hidden;
}

.main-string-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 123, 0, 0.10);
    color: #ff7b00;
    font-size: 28px;
}

.dashboard-main-string h2 {
    margin: 0;
    color: #ff6f2a;
    font-size: 23px;
    letter-spacing: 0.04em;
}

.dashboard-main-string p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-section {
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: rgba(7, 17, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.section-title {
    margin: 0 0 12px 4px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.section-title.danger {
    color: #ff5555;
}

.section-title.blue {
    color: #62b6ff;
}

.priority-grid,
.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    position: relative;
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 11px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.metric-card::after {
    display: none;
}

.metric-card.is-active {
    outline: 2px solid currentColor;
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.035),
        0 0 35px currentColor;
}

.metric-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: currentColor;
    color: #050b12;
    font-weight: 900;
    font-size: 21px;
    flex: 0 0 auto;
    box-shadow: 0 0 24px currentColor;
}

.metric-card span {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: currentColor;
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.metric-card small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
}

.metric-card.critical {
    color: #ff4d4d;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.13), rgba(255, 77, 77, 0.035));
    border: 1px solid rgba(255, 77, 77, 0.24);
}

.metric-card.high {
    color: #ff7b00;
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.14), rgba(255, 123, 0, 0.035));
    border: 1px solid rgba(255, 123, 0, 0.26);
}

.metric-card.medium {
    color: #ffe600;
    background: linear-gradient(135deg, rgba(255, 230, 0, 0.13), rgba(255, 230, 0, 0.035));
    border: 1px solid rgba(255, 230, 0, 0.22);
}

.metric-card.low {
    color: #42ff5b;
    background: linear-gradient(135deg, rgba(66, 255, 91, 0.12), rgba(66, 255, 91, 0.035));
    border: 1px solid rgba(66, 255, 91, 0.22);
}

.metric-card.open {
    color: #2998ff;
    background: linear-gradient(135deg, rgba(41, 152, 255, 0.13), rgba(41, 152, 255, 0.035));
    border: 1px solid rgba(41, 152, 255, 0.24);
}

.metric-card.working {
    color: #9b5cff;
    background: linear-gradient(135deg, rgba(155, 92, 255, 0.13), rgba(155, 92, 255, 0.035));
    border: 1px solid rgba(155, 92, 255, 0.24);
}

.metric-card.resolved {
    color: #28e86f;
    background: linear-gradient(135deg, rgba(40, 232, 111, 0.12), rgba(40, 232, 111, 0.035));
    border: 1px solid rgba(40, 232, 111, 0.22);
}

.metric-card.rejected {
    color: #ff4b4b;
    background: linear-gradient(135deg, rgba(255, 75, 75, 0.13), rgba(255, 75, 75, 0.035));
    border: 1px solid rgba(255, 75, 75, 0.24);
}

.spark {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 108px;
    height: 38px;
    opacity: 0.95;
}

.spark-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.spark-svg polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 7px currentColor);
}

.category-grid {
    display: grid;
    gap: 14px;
}

.category-grid.main-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card {
    position: relative;
    min-height: 116px;
    padding: 17px;
    border-radius: 11px;
    text-decoration: none;
    cursor: pointer;
    background: rgba(8, 17, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.category-card.is-active {
    outline: 2px solid currentColor;
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.035),
        0 0 35px currentColor;
}

.category-card.blue {
    color: #2f9cff;
    background: linear-gradient(135deg, rgba(47, 156, 255, .11), rgba(47, 156, 255, .03));
    border-color: rgba(47, 156, 255, .22);
}

.category-card.orange {
    color: #ff7b00;
    background: linear-gradient(135deg, rgba(255, 123, 0, .13), rgba(255, 123, 0, .03));
    border-color: rgba(255, 123, 0, .26);
}

.category-top {
    display: flex;
    align-items: center;
    gap: 11px;
}

.category-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: currentColor;
    color: #04101b;
    font-weight: 900;
}

.category-card span {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.category-card strong {
    display: block;
    margin-top: 13px;
    font-size: 23px;
    color: currentColor;
}

.category-progress {
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

.category-progress i {
    display: block;
    height: 100%;
    background: currentColor;
    border-radius: inherit;
}

.category-card small {
    position: absolute;
    right: 15px;
    bottom: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.meta-panel {
    padding: 17px;
    border-radius: 13px;
    background: rgba(7, 17, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-head h3 {
    margin: 0;
    color: #62b6ff;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.panel-head a {
    padding: 7px 11px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.report-list,
.log-list {
    display: grid;
}

.report-line,
.log-line {
    position: relative;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    text-decoration: none;
    color: #fff;
}

.report-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: currentColor;
}

.report-line.critica {
    color: #ff4d4d;
}

.report-line.alta {
    color: #ff7b00;
}

.report-line.media {
    color: #ffe600;
}

.report-line.bassa {
    color: #42ff5b;
}

.line-icon,
.log-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: currentColor;
    flex: 0 0 auto;
}

.line-content {
    flex: 1;
    min-width: 0;
}

.line-content strong {
    display: block;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-content span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.57);
    font-size: 12px;
}

.line-right {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.line-right small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.badge,
.log-badge {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
}

.priority-critica,
.log-badge.failed {
    background: rgba(255, 77, 77, 0.16);
    color: #ff6565;
}

.priority-alta {
    background: rgba(255, 123, 0, 0.16);
    color: #ff9b3d;
}

.priority-media {
    background: rgba(255, 230, 0, 0.16);
    color: #ffe600;
}

.priority-bassa,
.log-badge.success {
    background: rgba(66, 255, 91, 0.14);
    color: #42ff5b;
}

.log-line.success {
    color: #42ff5b;
}

.log-line.failed,
.log-line.disabled {
    color: #ff4d4d;
}

.empty-card {
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.58);
    font-weight: 800;
}

@media (max-width: 1300px) {
    .priority-grid,
    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .dashboard-topbar {
        flex-direction: column;
    }

    .priority-grid,
    .status-grid,
    .category-grid.main-categories {
        grid-template-columns: 1fr;
    }
}