@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #111827;
    background: linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

.feedback-page {
    width: min(94vw, 1480px);
    margin: 0 auto;
    padding: 28px 0;
}

.feedback-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.heading-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.heading-icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff981f;
    color: #fff;
    box-shadow: 0 16px 35px rgba(255, 152, 31, .28);
}

.heading-icon i {
    color: #fff;
    font-size: 38px;
    width: auto;
}

.heading-left h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.heading-left p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 17px;
}

.heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.date-btn,
.download-btn {
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.date-btn i,
.download-btn i {
    color: #111827;
    width: auto;
}

.download-btn {
    border-color: #f3b317;
    background: linear-gradient(180deg, #ffcf3f 0%, #f9b80f 100%);
    box-shadow: 0 10px 18px rgba(249, 184, 15, .22);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.stat-card,
.panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(203, 213, 225, .75);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

.stat-card {
    min-height: 138px;
    padding: 28px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.stat-icon i {
    font-size: 33px;
    width: auto;
}

.stat-card h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

.stat-card strong {
    display: block;
    margin: 4px 0 2px;
    font-size: 34px;
    line-height: 1.05;
}

.stat-card small {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.stat-card p {
    margin: 0;
    font-size: 13px;
    color: #334155;
}

.stat-card p i {
    width: auto;
}

.blue .stat-icon {
    color: #2563eb;
    background: #dbeafe;
}

.blue strong {
    color: #2563eb;
}

.green .stat-icon {
    color: #26a65b;
    background: #dcfce7;
}

.green strong {
    color: #159447;
}

.purple .stat-icon {
    color: #6d28d9;
    background: #eadcfb;
}

.purple strong {
    color: #6d28d9;
}

.orange .stat-icon {
    color: #ff981f;
    background: #ffedd5;
}

.orange strong {
    color: #fb6a0a;
}

.good {
    color: #149350 !important;
}

.bad {
    color: #dc2626 !important;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr .9fr .85fr;
    gap: 18px;
}

.panel {
    min-width: 0;
    padding: 22px;
}

.panel h2 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.2;
    color: #111827;
}

.chart {
    position: relative;
    width: 100%;
}

.trend-chart {
    height: 245px;
}

.donut-chart,
.pie-chart {
    height: 210px;
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(145px, 1fr) minmax(185px, .95fr);
    gap: 18px;
    align-items: center;
}

.legend-list,
.highlight-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legend-list li,
.highlight-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #111827;
}

.legend-list strong,
.highlight-list strong {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
}

.rating-5 {
    background: #2fa65a;
}

.rating-4 {
    background: #78c84d;
}

.rating-3 {
    background: #ffc72c;
}

.rating-2 {
    background: #ff8b1a;
}

.rating-1 {
    background: #ef4444;
}

.service-list {
    display: grid;
    gap: 14px;
}

.service-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #334155;
}

.service-label strong {
    color: #1f2937;
    white-space: nowrap;
}

.service-bar {
    height: 17px;
    background: #e5e7eb;
    overflow: hidden;
}

.service-bar span {
    display: block;
    min-width: 3px;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #2f7df4);
}

.type-list li::before {
    content: "";
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    background: #2563eb;
}

.type-list li:nth-child(2)::before {
    background: #2fa65a;
}

.type-list li:nth-child(3)::before {
    background: #ffc72c;
}

.highlight-list li {
    min-height: 31px;
}

.highlight-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
}

.highlight-icon i {
    width: auto;
    color: #fff;
}

.highlight-icon.green {
    background: #2fa65a;
}

.highlight-icon.yellow {
    background: #ffc72c;
}

.highlight-icon.orange {
    background: #ff981f;
}

.highlight-icon.blue {
    background: #2563eb;
}

.summary-box {
    min-height: 116px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    background: #eaf3ff;
}

.summary-box i {
    margin-top: 5px;
    color: #2563eb;
    font-size: 22px;
    width: auto;
}

.summary-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #111827;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.summary-box p.is-changing {
    opacity: 0;
}

@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .feedback-page {
        width: min(94vw, 760px);
    }

    .feedback-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .heading-actions {
        justify-content: flex-start;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .split-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .feedback-page {
        padding: 20px 0;
    }

    .heading-left {
        align-items: flex-start;
    }

    .heading-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .heading-icon i {
        font-size: 28px;
    }

    .date-btn,
    .download-btn {
        width: 100%;
    }

    .stat-card {
        align-items: flex-start;
        flex-direction: column;
    }
}
