/* ============================================================
   SYMOTAX
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background: #f3f6fb;
    color: #172033;
}

body {
    min-height: 100vh;
}

/* ============================================================
   APP
   ============================================================ */

.app {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f8fafc;
    padding-bottom: 82px;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    background: linear-gradient(
        135deg,
        #061735 0%,
        #0d2d5c 30%,
        #c9a227 100%
    );

    color: white;
    padding: 25px 20px 28px;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 5px 18px rgba(15, 76, 129, .20);
}

.header-title {
    font-size: 27px;
    font-weight: 800;
    margin: 0;
}

.header-subtitle {
    margin-top: 5px;
    font-size: 14px;
    opacity: .9;
}

/* ============================================================
   HOME
   ============================================================ */

.home-content {
    padding: 18px;
}

.welcome-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .07);
    margin-bottom: 18px;
}

.welcome-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.welcome-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-btn {
    width: 100%;
    border: 0;
    background: white;
    border-radius: 17px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 3px 13px rgba(15, 23, 42, .07);
    transition: .15s;
}

.menu-btn:active {
    transform: scale(.985);
}

.menu-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
}

.menu-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
}

.menu-info {
    flex: 1;
}

.menu-title {
    display: block;
    font-size: 16px;
    font-weight: 750;
    color: #172033;
}

.menu-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
}

.menu-arrow {
    color: #94a3b8;
}

.menu-arrow svg {
    width: 21px;
    height: 21px;
    fill: none;
}

/* ============================================================
   SCREEN
   ============================================================ */

.page {
    padding: 17px;
}

.screen-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-header-back {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    box-shadow: 0 2px 9px rgba(15, 23, 42, .08);
}

.screen-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
}

/* ============================================================
   SEARCH
   ============================================================ */

.search-bar-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-box-wrap {
    position: relative;
    flex: 1;
}

.large-input,
.large-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe3ee;
    border-radius: 13px;
    background: white;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    color: #172033;
}

.large-input:focus,
.large-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.btn-search-action {
    min-width: 80px;
    border: 0;
    border-radius: 13px;
    background: #2563eb;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-clear {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #e2e8f0;
    color: #475569;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.results-count {
    color: #64748b;
    font-size: 13px;
    margin: 12px 2px;
}

/* ============================================================
   CARD LIST
   ============================================================ */

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-card {
    background: white;
    border-radius: 17px;
    padding: 16px;
    box-shadow: 0 3px 13px rgba(15, 23, 42, .07);
}

.data-title {
    font-size: 17px;
    font-weight: 800;
    color: #172033;
    margin-bottom: 7px;
}

.data-subtitle {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.data-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
}

.data-value {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
}

.card-footer {
    margin-top: 14px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-blue {
    background: #2563eb;
    color: white;
}

.btn-green {
    background: #16a34a;
    color: white;
}

.btn-gray {
    background: #e2e8f0;
    color: #334155;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.badge-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================================
   DETAIL
   ============================================================ */

.detail-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .07);
}

.detail-title {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 18px;
}

.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-label {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 4px;
}

.detail-value {
    color: #172033;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.pasal-box {
    background: #f8fafc;
    border-radius: 13px;
    padding: 15px;
    line-height: 1.7;
    white-space: pre-line;
}

/* ============================================================
   EMPTY
   ============================================================ */

.empty {
    background: white;
    border-radius: 16px;
    padding: 30px 18px;
    text-align: center;
    color: #64748b;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */

.simple-bottom-nav {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px;
    height: 70px;
    background: rgba(255,255,255,.97);
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}

.nav-item {
    border: 0;
    background: transparent;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 9px;
    cursor: pointer;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.nav-item.active {
    color: #2563eb;
    font-weight: 750;
}

/* ============================================================
   WHATSAPP
   ============================================================ */

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 87px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(22, 163, 74, .3);
    z-index: 99;
}

.wa-float svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 700px) {

    body {
        background: #e9eef5;
    }

    .app {
        box-shadow: 0 0 30px rgba(15,23,42,.08);
    }

    .simple-bottom-nav {
        box-shadow: 0 -5px 20px rgba(15,23,42,.12);
    }

}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .page {
        padding: 14px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .search-bar-row {
        flex-direction: column;
    }

    .btn-search-action {
        min-height: 46px;
    }

    .nav-item {
        font-size: 8px;
    }

}