
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    overflow: hidden;
}
.page-header {
    margin-bottom: 18px;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 700;
    color: #1a1a1a;
}

.page-subtitle {
    color: #7a8597;
    font-size: 14px;
    margin-top: 4px;
}

.card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e7ee;
}

.input-label {
    font-family: 'Poppins', sans-serif;
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: #334155;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #8ab8b2;
    border-radius: 10px;
    padding: 12px 15px;
    gap: 10px;
    background: #fff;
}

.search-icon {
    width: 16px;
    opacity: 0.55;
}

.search-box input {
    font-family: 'Poppins', sans-serif;
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #475569;
}

.table-header-action {
    display: flex;
    justify-content: flex-end;
}

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

.btn-add {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-add:hover {
    background: transparent;
}

.btn-add img {
    width: auto;
    height: 34px;
    object-fit: contain;
}

.list-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.layanan-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 294px;
}

.layanan-item {
    border: 1px solid #c9d2d8;
    border-radius: 6px;
    background: #f4f7f8;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.layanan-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.layanan-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.layanan-icon {
    width: 56px;
    height: 50px;
    border-radius: 5px;
    background: #0d8d85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layanan-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.layanan-icon img.icon-mata {
    width: 30px;
    height: 30px;
}

.layanan-nama {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    line-height: 1.05;
}

.layanan-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-badge {
    background: #d5f1da;
    color: #1f9a4c;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    line-height: 1.1;
}

.toggle-btn {
    border: none;
    background: transparent;
    color: #0d8d85;
    cursor: pointer;
    line-height: 0;
    padding: 2px;
}

.toggle-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.layanan-item.is-expanded .toggle-btn svg {
    transform: rotate(180deg);
}

.layanan-detail {
    display: none;
    margin-top: 14px;
    padding: 16px 18px 18px;
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.layanan-item.is-expanded .layanan-detail {
    display: block;
}

.layanan-detail-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
}

.layanan-detail-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.info-blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    column-gap: 36px;
    row-gap: 14px;
    flex: 1;
    min-width: 0;
}

@media (max-width: 720px) {
    .info-blocks {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

.info-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.info-block-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d5f0ec;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-block-icon-wrap img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.info-block-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.info-block-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.info-block-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.detail-actions .btn-edit,
.detail-actions .btn-remove {
    width: 22px;
    height: 22px;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

.detail-actions .btn-edit:hover,
.detail-actions .btn-remove:hover {
    opacity: 0.85;
}

.list-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-label {
    color: #9fb0c2;
    font-size: 18px;
    line-height: 1;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-nav,
.page-number {
    width: 30px;
    height: 30px;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1366px) {
    .layanan-nama { font-size: 20px; }
    .total-label { font-size: 14px; }
}

.page-number.active {
    background: #0d8d85;
    color: #fff;
    border-color: #0d8d85;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 37, 45, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    width: min(470px, calc(100vw - 28px));
    background: #eeeeef;
    border-radius: 18px;
    padding: 28px 36px 30px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    border: none;
    background: transparent;
    font-size: 44px;
    line-height: 1;
    color: #868c93;
    cursor: pointer;
    font-weight: 400;
}
/* popup */
.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.2;
    color: #1b1f24;
    margin-bottom: 20px;
}

.modal-field {
    margin-bottom: 18px;
}

.modal-field label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.modal-field input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #89cec4;
    border-radius: 8px;
    background: #dfe1e4;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    color: #334155;
}

.modal-field input:focus {
    border-color: #56b9aa;
    background: #f3f4f6;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
}

.btn-cancel,
.btn-save {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-cancel {
    background: #ff0d0d;
}

.btn-save {
    background: #0c5d69;
}

.btn-cancel:hover {
    background: #e10b0b;
}

.btn-save:hover {
    background: #0b4f58;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 37, 45, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirm-overlay.show {
    display: flex;
}

.confirm-card {
    width: min(500px, calc(100vw - 30px));
    background: #ffffff;
    border-radius: 18px;
    padding: 44px 56px 46px;
    position: relative;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.confirm-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #8f97a1;
    cursor: pointer;
    font-weight: 600;
}

.confirm-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    margin: 0 auto 16px;
    border: 5px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon-inner {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
}

.confirm-title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 800;
}

.confirm-desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.confirm-warn {
    color: #ff0000;
    font-weight: 800;
}

.confirm-actions {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.btn-confirm-cancel,
.btn-confirm-danger {
    height: 50px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-confirm-cancel {
    background: #9e9e9e;
    color: #ffffff;
}

.btn-confirm-cancel:hover {
    background: #8a8a8a;
}

.btn-confirm-danger {
    background: #ff0000;
    color: #ffffff;
}

.btn-confirm-danger:hover {
    background: #e60000;
}

.admin-profile{
    display:flex;
    align-items:center;
    gap:12px;

    text-decoration:none;
    color:inherit;
    cursor:pointer;
}

.admin-profile:hover{
    opacity:0.85;
}