* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #12202b;
    background: #f7faf8;
}

a {
    text-decoration: none;
    color: inherit;
}


/* HEADER */

.topbar {
    height: 76px;
    background: white;
    border-bottom: 1px solid #e4ebe7;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    position: sticky;
    top: 0;
    z-index: 5;
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}


.brand b {
    font-size: 25px;
}


.brand small {
    display: block;
    font-size: 11px;
    color: #68756f;
}


.logo {
    width: 58px;
    height: 58px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;
}


.topbar nav {
    display: flex;
    gap: 28px;
    align-items: center;

    font-weight: 600;
}


.topbar nav a {
    padding: 11px 4px;
}


.topbar nav .active {
    color: #087f3f;

    border-bottom: 3px solid #087f3f;
}


.login-btn,
.btn {
    border-radius: 9px;

    padding: 12px 20px;

    font-weight: 700;

    display: inline-block;

    border: 0;

    cursor: pointer;
}


.login-btn,
.btn.primary {
    background: #07833f;
    color: white;
}


/* HOME */

.hero {
    max-width: 1400px;

    margin: 30px auto 0;

    min-height: 430px;

    padding: 60px 7%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    background:
        linear-gradient(
            120deg,
            #edf8f0,
            #eaf3fb
        );

    border-radius: 24px;
}


.eyebrow {
    color: #07833f;

    font-weight: 800;

    letter-spacing: 2px;
}


.hero h1 {
    font-size: 56px;

    line-height: 1.05;

    margin: 10px 0;
}


.hero h1 span {
    color: #07833f;
}


.hero-text {
    font-size: 18px;

    line-height: 1.7;

    max-width: 600px;
}


.hero-art {
    height: 340px;

    position: relative;

    display: grid;

    place-items: center;
}


.city {
    font-size: 170px;

    opacity: .5;
}


.phone {
    position: absolute;

    background: white;

    border: 8px solid #172630;

    border-radius: 30px;

    width: 190px;

    height: 330px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 16px;

    box-shadow:
        0 20px 40px #0002;
}


.phone strong {
    font-size: 60px;
}


.phone span {
    text-align: center;

    font-size: 20px;
}


.phone a {
    background: #07833f;

    color: white;

    padding: 10px 20px;

    border-radius: 8px;

    font-weight: 700;
}


/* FEATURES */

.features {
    max-width: 1250px;

    margin: 28px auto;

    padding: 0 20px;

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 16px;
}


.features article,
.card {
    background: white;

    border: 1px solid #e0e8e3;

    border-radius: 14px;

    padding: 22px;

    box-shadow:
        0 5px 20px #183d2a0a;
}


.features article {
    text-align: center;
}


.icon {
    font-size: 35px;
}


.features p,
.muted {
    color: #68756f;

    line-height: 1.55;
}


/* STATS */

.stats {
    max-width: 1250px;

    margin: 30px auto;

    padding: 25px;

    background: #eff8f2;

    border: 1px solid #dcece1;

    border-radius: 15px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    text-align: center;
}


.stats b {
    display: block;

    font-size: 30px;

    color: #087f3f;
}


.stats span {
    color: #66746e;
}


footer {
    text-align: center;

    padding: 30px;

    color: #66746e;
}


/* GENERAL */

.page {
    max-width: 1250px;

    margin: 40px auto;

    padding: 0 20px;
}


.grid-2 {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    gap: 24px;
}


.card label {
    display: block;

    font-weight: 700;

    margin: 18px 0 8px;
}


.card em {
    color: #e33;

    font-style: normal;
}


.card textarea,
.card input,
.card select {
    width: 100%;

    padding: 14px;

    border: 1px solid #ccd8d1;

    border-radius: 9px;

    font: inherit;

    background: white;
}


.card textarea {
    height: 130px;

    resize: vertical;
}


.char {
    text-align: right;

    color: #78847f;

    font-size: 12px;
}


.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;
}


.btn.outline {
    background: white;

    color: #087f3f;

    border: 1px solid #087f3f;
}


.btn.full {
    width: 100%;

    margin-top: 20px;

    text-align: center;
}


.location-row {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 10px;
}


.location-row .btn {
    white-space: nowrap;
}


.file-preview {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 12px;
}


.file-chip {
    background: #eef7f0;

    padding: 9px 12px;

    border-radius: 8px;

    font-size: 13px;
}


.privacy {
    text-align: center;

    color: #69766f;
}


/* AI */

.ai-card {
    background: #f3fbf5;
}


.ai-card h2 {
    color: #087f3f;
}


.ai-row {
    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    border-bottom:
        1px solid #dfe9e2;
}


.ai-row b {
    color: #087f3f;
}


.guidelines {
    margin-top: 20px;
}


/* RESULT */

.success {
    display: flex;

    align-items: center;

    gap: 20px;

    background: #effaf2;
}


.success-icon {
    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: #07833f;

    color: white;

    display: grid;

    place-items: center;

    font-size: 36px;
}


.complaint-id {
    margin-left: auto;

    text-align: center;

    background: #eaf6ed;

    padding: 15px 25px;

    border-radius: 10px;
}


.complaint-id b,
.complaint-id small {
    display: block;
}


.analysis-box {
    border: 1px solid #dbe8df;

    border-radius: 10px;

    padding: 15px;
}


.analysis-box p {
    display: flex;

    justify-content: space-between;

    border-bottom:
        1px solid #edf0ee;

    padding: 10px;
}


.analysis-box p span {
    font-weight: 700;

    color: #087f3f;
}


.next-box {
    background: #edf6ff;

    padding: 18px;

    border-radius: 10px;

    margin: 20px 0;
}


/* TIMELINE */

.timeline {
    border-left:
        3px solid #07833f;

    padding-left: 25px;
}


.timeline > div {
    padding: 12px 0;

    position: relative;
}


.timeline > div:before {
    content: "";

    position: absolute;

    left: -36px;

    top: 16px;

    width: 14px;

    height: 14px;

    border-radius: 50%;

    background: #d8e1dc;

    border: 3px solid white;

    box-shadow:
        0 0 0 1px #cad7d0;
}


.timeline .done:before,
.timeline .current:before {
    background: #07833f;
}


.timeline small {
    display: block;

    color: #69766f;

    margin-top: 5px;
}


/* TRACK */

.search-card {
    max-width: 1000px;
}


.search-row {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 10px;

    margin: 20px 0;
}


.track-box {
    margin-top: 25px;
}


.status-pill {
    padding: 6px 10px;

    border-radius: 15px;

    background: #e9f7ed;

    color: #087f3f;

    font-weight: 700;

    font-size: 12px;
}


/* ADMIN */

.admin-body {
    background: #f5f8f6;
}


.admin-top {
    height: 76px;

    background: white;

    border-bottom:
        1px solid #dde6e0;

    padding: 0 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.admin-top input {
    padding: 12px 18px;

    border: 1px solid #ccd8d1;

    border-radius: 9px;

    width: 300px;
}


.admin-layout {
    display: grid;

    grid-template-columns: 220px 1fr;

    min-height:
        calc(100vh - 76px);
}


.sidebar {
    background: #102d2c;

    color: #eaf4ef;

    padding: 20px 12px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.sidebar a {
    padding: 12px;

    border-radius: 8px;
}


.sidebar a:hover,
.side-active {
    background: #07833f !important;

    color: white;
}


.sidebar hr {
    width: 100%;

    border: 0;

    border-top:
        1px solid #31514d;

    margin: 15px 0;
}


.system {
    margin-top: auto;

    padding: 12px;

    background: #163a35;

    border: 1px solid #2c6256;

    border-radius: 9px;

    color: #9ce0b3;

    font-size: 12px;
}


.admin-main {
    padding: 30px;

    max-width: 1500px;

    width: 100%;

    margin: auto;
}


.admin-heading {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


.date {
    background: white;

    border: 1px solid #dce5df;

    padding: 12px 16px;

    border-radius: 8px;
}


.kpis {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin: 20px 0;
}


.kpis > div {
    background: white;

    border: 1px solid #e0e8e3;

    border-radius: 12px;

    padding: 22px;
}


.kpis b {
    display: block;

    font-size: 30px;
}


.kpis span {
    color: #69766f;
}


.charts {
    display: grid;

    grid-template-columns:
        1.2fr 1fr 1fr;

    gap: 15px;

    margin-bottom: 20px;
}


.chart {
    min-height: 260px;
}


.bars {
    height: 150px;

    display: flex;

    align-items: end;

    gap: 15px;
}


.bars i {
    background: #07833f;

    color: white;

    padding: 7px;

    border-radius:
        7px 7px 0 0;

    font-size: 11px;

    display: flex;

    align-items: flex-start;

    font-style: normal;
}


.donut {
    margin: 20px auto;

    border: 25px solid #62b57b;

    border-right-color: #f1a544;

    border-bottom-color: #ef5c5c;

    border-radius: 50%;

    width: 130px;

    height: 130px;

    display: grid;

    place-items: center;

    text-align: center;

    font-weight: 800;
}


.priority-legend {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


/* TABLE */

.table-head {
    display: flex;

    justify-content: space-between;

    align-items: center;
}


.table-head select {
    padding: 10px;

    border: 1px solid #ccd8d1;

    border-radius: 8px;
}


.table-wrap {
    overflow: auto;
}


table {
    width: 100%;

    border-collapse: collapse;
}


th,
td {
    padding: 13px;

    border-bottom:
        1px solid #edf1ee;

    text-align: left;

    font-size: 13px;
}


th {
    color: #64716b;
}


/* DETAILS */

.back {
    color: #087f3f;

    font-weight: 700;
}


.detail-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr 320px;

    gap: 15px;
}


.detail-wide {
    grid-column: span 2;
}


.recommend {
    background: #effaf2;

    border: 1px solid #cfe7d5;

    padding: 18px;

    border-radius: 10px;
}


.action-stack {
    display: grid;

    gap: 10px;
}


.action-stack button {
    width: 100%;
}


.note {
    background: #fff7e8;

    padding: 15px;

    border-radius: 10px;

    margin-top: 20px;
}


.activity {
    border-left:
        3px solid #07833f;

    padding-left: 18px;
}


.activity p {
    padding: 8px 0;
}


/* MOBILE */

@media(max-width:900px) {

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

    .features {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .grid-2,
    .detail-grid,
    .charts {
        grid-template-columns: 1fr;
    }

    .kpis {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

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

}


@media(max-width:560px) {

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

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

    .topbar nav {
        gap: 10px;
        font-size: 12px;
    }

    .topbar nav a:nth-child(4) {
        display: none;
    }

    .hero {
        padding: 35px 25px;
    }

    .search-row,
    .location-row {
        grid-template-columns: 1fr;
    }

    .admin-top input {
        width: 150px;
    }

}
/* =====================================
   MODALS
===================================== */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 1000;

    padding: 20px;
}


.modal.show {
    display: flex;
}


.modal-box {
    width: 100%;

    max-width: 520px;

    background: white;

    border-radius: 18px;

    padding: 30px;

    position: relative;

    box-shadow:
        0 25px 70px rgba(0,0,0,.25);
}


.modal-box h2 {
    margin-top: 0;
}


.modal-box label {
    display: block;

    margin-top: 18px;

    margin-bottom: 7px;

    font-weight: 700;
}


.modal-box input,
.modal-box textarea {
    width: 100%;

    padding: 13px;

    border: 1px solid #ccd8d1;

    border-radius: 9px;

    font: inherit;
}


.modal-box textarea {
    min-height: 100px;

    resize: vertical;
}


.modal-close {
    position: absolute;

    right: 18px;

    top: 15px;

    border: none;

    background: transparent;

    font-size: 30px;

    cursor: pointer;

    color: #555;
}


.setting-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 0;

    border-top: 1px solid #e2e8e4;

    border-bottom: 1px solid #e2e8e4;

    margin-top: 20px;
}


.setting-row small {
    display: block;

    color: #6b7771;

    margin-top: 5px;

    max-width: 300px;
}


.setting-info {
    margin-top: 18px;

    padding: 14px;

    border-radius: 9px;

    background: #eff8f2;

    color: #087f3f;

    font-size: 13px;
}


/* =====================================
   DARK MODE
===================================== */

body.dark-mode {
    background: #101716;

    color: #edf5f1;
}


body.dark-mode .admin-top,
body.dark-mode .card,
body.dark-mode .modal-box,
body.dark-mode .kpis > div {
    background: #182321;

    color: #edf5f1;

    border-color: #30413c;
}


body.dark-mode .admin-top {
    border-bottom-color: #30413c;
}


body.dark-mode .admin-main {
    color: #edf5f1;
}


body.dark-mode .muted,
body.dark-mode .kpis span,
body.dark-mode .brand small {
    color: #a9b8b2;
}


body.dark-mode table {
    color: #edf5f1;
}


body.dark-mode th {
    color: #a9b8b2;
}


body.dark-mode td {
    border-bottom-color: #30413c;
}


body.dark-mode .table-head select,
body.dark-mode .modal-box input,
body.dark-mode .modal-box textarea {
    background: #101716;

    color: #edf5f1;

    border-color: #40534c;
}


body.dark-mode .btn.outline {
    background: #182321;

    color: #72d99a;

    border-color: #36a866;
}


body.dark-mode .date {
    background: #182321;

    color: #edf5f1;

    border-color: #30413c;
}


body.dark-mode .setting-info {
    background: #153126;

    color: #7be2a2;
}


body.dark-mode .setting-row {
    border-color: #30413c;
}


body.dark-mode .modal-close {
    color: #edf5f1;
}


body.dark-mode .status-pill {
    background: #173a29;

    color: #7be2a2;
}


/* =====================================
   DARK MODE - HOME / CITIZEN PAGES
===================================== */

body.dark-mode .topbar {
    background: #182321;

    border-color: #30413c;
}


body.dark-mode .topbar nav a {
    color: #edf5f1;
}


body.dark-mode .topbar nav .active {
    color: #72d99a;

    border-color: #36a866;
}


body.dark-mode .hero {
    background:
        linear-gradient(
            120deg,
            #172820,
            #17242d
        );
}


body.dark-mode .hero-text,
body.dark-mode .features p,
body.dark-mode .muted {
    color: #a9b8b2;
}


body.dark-mode .features article,
body.dark-mode .stats {
    background: #182321;

    border-color: #30413c;
}


body.dark-mode .stats {
    background: #153126;
}


body.dark-mode .card label {
    color: #edf5f1;
}


body.dark-mode .card textarea,
body.dark-mode .card input,
body.dark-mode .card select {
    background: #101716;

    color: #edf5f1;

    border-color: #40534c;
}


body.dark-mode footer {
    color: #a9b8b2;
}

/* =====================================
   ADMIN LAYOUT
===================================== */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 78px);
}


/* LEFT SIDEBAR */

.admin-sidebar {
    width: 258px;
    min-width: 258px;

    background: #0b302d;

    color: white;

    padding: 24px 14px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    box-sizing: border-box;
}


/* SIDEBAR LINKS */

.admin-sidebar a {
    display: flex;

    align-items: center;

    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    border-radius: 10px;

    color: white;

    text-decoration: none;

    font-size: 17px;

    font-weight: 600;

    transition: 0.2s ease;
}


/* HOVER */

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.10);
}


/* ACTIVE */

.admin-sidebar a.active {
    background: #087f3f;

    color: white;
}


/* MAIN CONTENT */

.admin-main {
    flex: 1;

    min-width: 0;

    padding: 55px 36px;

    background: #f5f8f6;

    box-sizing: border-box;
}


/* =====================================
   ADMIN HEADER
===================================== */

.admin-top {
    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 28px;

    box-sizing: border-box;

    background: white;

    border-bottom: 1px solid #dce5e1;

    position: relative;

    z-index: 10;
}


/* LOGO */

.admin-top .logo {
    width: 58px;

    height: 58px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;
}


/* BRAND */

.admin-top .brand {
    display: flex;

    align-items: center;

    gap: 14px;

    text-decoration: none;

    color: #092235;
}


.admin-top .brand b {
    display: block;

    font-size: 28px;
}


.admin-top .brand small {
    display: block;

    margin-top: 2px;

    color: #60736d;

    font-size: 14px;
}


/* =====================================
   DARK MODE SIDEBAR
===================================== */

body.dark-mode .admin-sidebar {
    background: #091f1c;
}


body.dark-mode .admin-sidebar a {
    color: #f1f7f4;
}


body.dark-mode .admin-sidebar a:hover {
    background: #173a34;
}


body.dark-mode .admin-sidebar a.active {
    background: #087f3f;
}


/* =====================================
   DARK MODE ADMIN LAYOUT
===================================== */

body.dark-mode .admin-main {
    background: #0f1715;
}


body.dark-mode .admin-top {
    background: #17221f;

    border-color: #30413b;
}


body.dark-mode .admin-top .brand {
    color: white;
}


body.dark-mode .admin-top .brand small {
    color: #a9b8b2;
}
