* {
    box-sizing: border-box
}

html,body {
    margin: 0;
    padding: 0;
    min-width: 320px
}

body {
    font-family: Arial,sans-serif, Helvetica;
    background: linear-gradient(135deg,#050505,#250000,#080000);
    color: #fff;
    font-size: 15px;
    overflow-x: hidden
}

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

button,input,select,textarea {
    font: inherit
}
button {
    cursor: pointer
}

.ar-app {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg,#cbcaa5 0,#000000 180px,#152331 100%);
    overflow-x: hidden;
}

/* HEADER */
.ar-header {
    width: 100%;
    min-height: 68px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg,#5d0b12 0%,#960B33 48%,#110506 100%);
    border-bottom: 1px solid #6e1a22;
}


.ar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px
}

.ar-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid #8d2731;
    border-radius: 50%;
    background: #160608;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.ar-brand-text {
    min-width: 0
}

.ar-title {
 
    font-family: "Times New Roman", Times, serif;
}
    font-size: 18px;
    line-height: 1.1;
    font-weight: bold;
    color: #fff
}

.ar-subtitle {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.2;
    color: #bdbdbd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ar-user {
    flex: 0 0 auto;
    max-width: 38%;
    padding: 7px 10px;
    border: 1px solid #6e1a22;
    border-radius: 8px;
    background: #100607;
    color: #eee;
    font-size: 13px;
    font-weight: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NAVBAR */
.ar-navbar {
    width: 100%;
    background: #960B33;
    border-bottom: 1px solid #fdcf58;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.ar-nav {
    width: max-content;
    min-height: 45px;
    margin: 0 auto;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ar-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.ar-nav a:hover {
    background: #2b090d;
    border-color: #5e171f;
    color: #fff
}
.ar-nav a.active {
    background: #5b0b12;
    border-color: #7a1c25;
    color: #fff
}

/* CONTENT */
.dashboard {
    width: 100%
}

.ar-container {
    width: min(1080px,100%);
    margin: auto;
    padding: 22px 16px 45px;
}

.page-header {
    margin: 0 0 20px
}
.page-title {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
}
.page-subtitle {
    margin-top: 5px;
    color: #a9a9a9;
    font-size: 13px
}

.section {
    margin-top: 22px
}
.section:first-child {
    margin-top: 2px;
}

.section-title {
    margin: 0 0 10px;
    color: #eee;
    font-size: 16px;
    line-height: 1.3;
    font-weight: bold;
}

.grid {
    display: grid;
    gap: 10px;
    min-width: 0
}
.grid-2 {
    grid-template-columns: repeat(2,minmax(0,1fr))
}
.grid-3 {
    grid-template-columns: repeat(3,minmax(0,1fr))
}
.grid-4 {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

/* CARD */
.glass-card {
    min-width: 0;
    padding: 14px;
    background: linear-gradient(145deg,#1b0a0c 0%,#0d0b0b 100%);
    border: 1px solid #351317;
    border-radius: 11px;
    box-shadow: 0 4px 14px rgba(0,0,0,.28);
    overflow: hidden;
}

.glass-card:hover {
    border-color: #542027
}

/* STAT */
.stat-card {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-label {
    color: #aaa;
    font-size: 12px;
    font-weight: 900px;
    line-height: 1.25
}

.stat-number {
    margin-top: 4px;
    color: #fff;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900px;
}

/* MENU */
.menu-item {
    min-width: 0;
    min-height: 104px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: #10090a;
    border: 1px solid #351317;
    border-radius: 11px;
    color: #fff;
}

.menu-item:hover {
    background: #220b0e;
    border-color: #69202a
}

.menu-item strong {
    font-size: 14px;
    line-height: 1.3
}
.menu-item span {
    color: #999;
    font-size: 12px;
    line-height: 1.4
}

/* INFO */
.info-row {
    min-height: 38px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #211214;
    font-size: 10px;
}

.info-row:last-child {
    border-bottom: 0
}
.info-row strong {
    color: #ccc
}
.info-row span {
    color: #eee;
    text-align: right
}

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid #5c1a22;
    border-radius: 6px;
    background: #21090d;
    color: #eee;
    font-size: 11px;
    font-weight: 400;
}

/* BUTTON */
.btn {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid #65202a;
    border-radius: 5px;
    background: #5b0b12;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    background: #74121b;
    border-color: #8d2731
}
.btn:active {
    background: #47080d;
    radius: 5px
}

/* FORM */
form {
    margin: 0
}

label {
    display: block;
    margin: 0 0 6px;
    color: #cfcfcf;
    font-size: 13px;
    font-weight: 400;
}

input,select,textarea {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #382024;
    border-radius: 7px;
    outline: none;
    background: #090909;
    color: #f5f5f5;
    font-size: 13px;
}

textarea {
    min-height: 90px;
    resize: vertical
}

input:focus,select:focus,textarea:focus {
    border-color: #76202a;
    background: #0d090a;
}

input::placeholder,textarea::placeholder {
    color: #686868
}
select option {
    background: #111;
    color: #fff
}

.glass-card form {
    max-width: 620px
}
.glass-card form .btn {
    margin-top: 10px
}

/* TABLE */
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #351317;
    border-radius: 10px;
    background: #0b0909;
}

.ar-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
}

.ar-table th,.ar-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #211214;
    text-align: left;
    vertical-align: middle;
}

.ar-table th {
    background: #21090d;
    color: #ddd;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.ar-table td {
    color: #c8c8c8
}
.ar-table tr:last-child td {
    border-bottom: 0
}

/* FOOTER */
.ar-footer {
    width: 100%;
    padding: 20px 14px 25px;
    border-top: 1px solid #211214;
    background: #070707;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.ar-footer strong {
    color: #aaa
}

/* TABLET */
@media (max-width:850px) {
    .grid-4 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
    .ar-container {
        padding: 20px 14px 32px
    }
}

/* HP */
@media (max-width:599px) {
    body {
        font-size: 13px
    }

    .ar-header {
        min-height: 62px;
        padding: 9px 11px;
        gap: 8px
    }

    .ar-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 18px
    }
    .ar-title {
        font-size: 18px
    }
    .ar-subtitle {
        font-size: 11px
    }

    .ar-user {
        max-width: 35%;
        padding: 6px 8px;
        font-size: 12px
    }

    .ar-nav {
        margin: 0;
        padding: 4px 7px
    }
    .ar-nav a {
        min-height: 32px;
        padding: 6px 9px;
        font-size: 11px
    }

    .ar-container {
        padding: 18px 20px 28px
    }

    .page-title {
        font-size: 14px;
        font-weight: 800px;
    }
    .page-subtitle {
        font-size: 12px
    }

    .section {
        margin-top: 10px;
    }
    .section-title {
        font-size: 14px;
        font-weight: 900px;
    }

    .grid-2,.grid-3,.grid-4 {
        grid-template-columns: 1fr
    }

    .glass-card {
        padding: 12px;
        border-radius: 10px
    }
    .stat-card {
        min-height: 70px;
        margin-top:20px ;
    }
    .stat-number {
        font-size: 19px;
    }

    .menu-item {
        min-height: 80px
    }

    .info-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px
    }
    .info-row span {
        text-align: left
        font-size: 8px;
    }

    .glass-card form {
        max-width: 70%
    }

    .btn {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 11px
    }

    input,select,textarea {
        min-height: 40px;
        font-size: 12px
    }

}

/* GROUPED STATISTICS */
.glass-card > .grid {
    width: 100%;
}

.glass-card > .grid .glass-card {
    box-shadow: none;
    background: #0c090a;
}

@media (max-width:599px) {
    .glass-card > .grid-3 {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .glass-card > .grid-4 {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .glass-card > .grid .stat-card {
        min-height: 70px;
        padding: 8px 5px;
    }

    .glass-card > .grid .stat-label {
        font-size: 10px;
    }

    .glass-card > .grid .stat-number {
        font-size: 20px;
    }

}

/* =========================================================
   WARGA OPENING
   Identitas muncul dari bawah ke atas
========================================================= */

.warga-opening {
    overflow: hidden;
    position: relative;
    text-align: center;
}

.warga-opening-title {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: .65;
    margin-bottom: 12px;
    font-weight: 400;
}

.warga-opening-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.warga-opening-item {
    min-height: 70px;
    padding: 10px 7px;
    background: rgba(0,0,0,.28);
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.06);

    opacity: 0;
    transform: translateY(35px);

    animation: wargaNaik .65s ease-out forwards;
}

.warga-opening-item:nth-child(1) {
    animation-delay: .15s;
}

.warga-opening-item:nth-child(2) {
    animation-delay: .35s;
}

.warga-opening-item:nth-child(3) {
    animation-delay: .55s;
}

.warga-opening-item:nth-child(4) {
    animation-delay: .75s;
}

.warga-opening-label {
    font-size: 9px;
    opacity: .55;
    margin-bottom: 7px;
    letter-spacing: .7px;
}

.warga-opening-value {
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
}

@keyframes wargaNaik {

    0% {
        opacity: 0;
        transform: translateY(35px);
    }

    70% {
        opacity: 1;
        transform: translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 599px) {

    .warga-opening {
        padding: 10px;
    }

    .warga-opening-title {
        font-size: 9px;
        margin-bottom: 9px;
    }

    .warga-opening-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .warga-opening-item {
        min-height: 58px;
        padding: 8px 5px;
    }

    .warga-opening-label {
        font-size: 8px;
        margin-bottom: 5px;
    }

    .warga-opening-value {
        font-size: 11px;
    }

}/* =========================================================
   WARGA OPENING
   Identitas muncul dari bawah ke atas
========================================================= */

.warga-opening {
    overflow: hidden;
    position: relative;
    text-align: center;
}

.warga-opening-title {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: .65;
    margin-bottom: 12px;
    font-weight: 400;
}

.warga-opening-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.warga-opening-item {
    min-height: 70px;
    padding: 10px 7px;
    background: rgba(0,0,0,.28);
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.06);

    opacity: 0;
    transform: translateY(35px);

    animation: wargaNaik .65s ease-out forwards;
}

.warga-opening-item:nth-child(1) {
    animation-delay: .15s;
}

.warga-opening-item:nth-child(2) {
    animation-delay: .35s;
}

.warga-opening-item:nth-child(3) {
    animation-delay: .55s;
}

.warga-opening-item:nth-child(4) {
    animation-delay: .75s;
}

.warga-opening-label {
    font-size: 9px;
    opacity: .55;
    margin-bottom: 7px;
    letter-spacing: .7px;
}

.warga-opening-value {
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
}

@keyframes wargaNaik {

    0% {
        opacity: 0;
        transform: translateY(35px);
    }

    70% {
        opacity: 1;
        transform: translateY(-3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 599px) {

    .warga-opening {
        padding: 10px;
    }

    .warga-opening-title {
        font-size: 9px;
        margin-bottom: 9px;
    }

    .warga-opening-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .warga-opening-item {
        min-height: 58px;
        padding: 8px 5px;
    }

    .warga-opening-label {
        font-size: 8px;
        margin-bottom: 5px;
    }

    .warga-opening-value {
        font-size: 11px;
    }

}