@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');

/* Header Styles */
.header-sticky {
    position: fixed;
    width: 100%;
    background: #FBFAF6;
    z-index: 1000;
    padding: 16px 0;
    transition: background-color 0.3s ease;
}

.header-sticky.hp-header-scrolled {
    background: #fff;
}

.hp-header-login-btn {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    padding: 9px 24px;
    border-radius: 7px;
    border: none;
    background-color: #1F1C15;
    color: #F7F2E4;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hp-header-login-btn:hover {
    background-color: #333333;
    color: #FFFFFF;
}

/* Hero Section Styles */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ECE7D6;
    box-shadow: inset 0 0 0 1px rgba(31, 28, 21, 0.06);
    border-radius: 50rem;
    padding: 7px 24px 7px 16px;
}

.hero-tag .hero-tag-logo {
    display: block;
    height: 18px;
    width: auto;
}

.hero-tag-text {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    color: #1F1C15;
    white-space: nowrap;
}

.hero-btn-primary:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

.hero-btn-secondary:hover {
    background-color: #D9D2BC !important;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 48px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 36px !important;
    }
}

/* Mobile: beri jarak antara judul hero dan gambar (kolom menumpuk) */
@media (max-width: 991.98px) {
    .hero-media-col {
        margin-top: 32px;
    }
}

/* Mobile: tombol Login/Dashboard hanya ada di dalam burger menu */
@media (max-width: 767.98px) {
    .hp-landing header .hp-landing-header-buttons {
        display: none !important;
    }
}

/* Section Divider (Hero - Our System) */
.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 32px;
    background-color: #FBFAF6;
}

.section-divider .section-divider-line {
    flex: 1 1 auto;
    height: 1px;
    background-color: transparent;
}

.section-divider .section-divider-line.line-start {
    background-image: linear-gradient(90deg, rgba(31, 28, 21, 0) 0%, rgba(31, 28, 21, 0.16) 100%);
}

.section-divider .section-divider-line.line-end {
    background-image: linear-gradient(90deg, rgba(31, 28, 21, 0.16) 0%, rgba(31, 28, 21, 0) 100%);
}

.section-divider .section-divider-ornament {
    position: relative;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background-color: #B8862B;
    transform: rotate(45deg);
    box-shadow: 0 0 0 5px rgba(184, 134, 43, 0.14);
}

@media (max-width: 575.98px) {
    .section-divider {
        gap: 14px;
        padding: 8px 20px;
    }
}

/* Our System - Empty State Styles */
.system-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 48px 24px;
}

.system-empty-icon {
    font-size: 24px;
    line-height: 1;
    color: #D2CBB6;
}

.system-empty-text {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14.5px;
    line-height: 22px;
    text-align: center;
    color: #A9A394;
    margin: 0;
    max-width: 440px;
}

/* Our System - Pagination Styles */
.system-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.system-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13.5px;
    line-height: 20px;
    text-align: center;
    border: none;
    border-radius: 7px;
    background-color: #F5F2E8;
    color: #6A665A;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.system-pagination-btn:hover:not(:disabled) {
    background-color: #ECE7D6;
    color: #1F1C15;
}

.system-pagination-btn.active {
    background-color: #1F1C15;
    color: #F7F2E4;
}

.system-pagination-btn.nav {
    width: 36px;
    padding: 0;
}

.system-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.system-pagination-btn i {
    font-size: 18px;
}

.system-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 36px;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #8F8A7A;
}

@media (max-width: 575.98px) {
    .system-pagination {
        gap: 6px;
        margin-top: 32px;
    }

    .system-pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .system-pagination-btn.nav {
        width: 32px;
    }

    .system-pagination-btn i {
        font-size: 16px;
    }

    .system-pagination-ellipsis {
        min-width: 20px;
        height: 32px;
    }
}

/* Our System Section Styles */
.our-system-section {
    background-color: #FBFAF6;
    padding-top: 80px;
    padding-bottom: 96px;
    position: relative;
    overflow: hidden;
}

.system-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1199.98px) {
    .system-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .system-cards-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.system-card-col {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.our-system-title {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 60px;
    text-align: center;
    color: #1F1C15;
    margin: 8px;
}

.our-system-subtitle {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    text-align: center;
    color: #8F8A7A;
    margin-bottom: 32px;
}

.system-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.system-filter-btn {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13.5px;
    line-height: 20px;
    text-align: center;
    padding: 8px 24px;
    border-radius: 7px;
    border: none;
    background-color: #F5F2E8;
    color: #6A665A;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.system-filter-btn:hover {
    background-color: #ECE7D6;
    color: #1F1C15;
}

.system-filter-btn.active {
    background-color: #1F1C15;
    color: #F7F2E4;
}

.system-card {
    background: #FFFFFF;
    border: 1px solid #ECE8DC;
    border-radius: 7px;
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(31, 28, 21, 0.08);
    border-color: #D9D2BC;
}

.system-avatar {
    width: 44px;
    height: 44px;
    background: #F5F2E8;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #B08A2E;
    flex-shrink: 0;
    overflow: hidden;
}

.system-avatar-large {
    width: 80px;
    height: 80px;
    background: #F5F2E8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    text-align: center;
    color: #B08A2E;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0 auto;
}

.system-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.system-badge {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 10.5px;
    line-height: 16px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 7px;
    letter-spacing: 0.3px;
}

.system-badge-selesai {
    background: #E6F5ED;
    color: #1F8F5F;
}

.system-badge-proses {
    background: #F5F2E8;
    color: #B08A2E;
}

.system-card-title {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 22px;
    color: #1F1C15;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.system-card-desc {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 11.5px;
    line-height: 17px;
    color: #8F8A7A;
    margin-bottom: 20px;
    height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.system-progress-box {
    background: #F5F2E8;
    border-radius: 7px;
    padding: 14px;
    margin-top: auto;
}

.system-progress-label {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12.5px;
    line-height: 19px;
    color: #6A665A;
}

.system-progress-val {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 19px;
    text-align: right;
    color: #1F1C15;
}

.system-progress-bar-track {
    width: 100%;
    height: 4px;
    background: #E6E1D0;
    border-radius: 50rem;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 14px;
}

.system-progress-bar-fill {
    height: 100%;
    background: #1F1C15;
    border-radius: 50rem;
    transition: width 0.3s ease;
}

.system-progress-bar-fill.fill-done {
    background: #1F1C15;
}

.system-progress-bar-fill.fill-ongoing {
    background: #B08A2E;
}

.system-meta-label {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    color: #8F8A7A;
    margin-bottom: 2px;
}

.system-meta-date {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 19px;
    color: #1F1C15;
}

.system-meta-status {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 19px;
    color: #1F1C15;
}

/* Warna mengikuti progress bar: ongoing = emas, done = tinta */
.system-meta-status.status-ongoing {
    color: #B08A2E;
}

.system-meta-status.status-done {
    color: #1F1C15;
}

.system-meta-status {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 19px;
    text-align: right;
}

.system-status-done {
    color: #1F8F5F;
}

.system-status-ongoing {
    color: #B08A2E;
}

@media (max-width: 575.98px) {
    .our-system-title {
        font-size: 32px !important;
        line-height: 44px !important;
    }
}

/* Common Utility Classes */
.img-attachment {
    height: 150px;
    object-fit: cover;
}
.cursor-pointer {
    cursor: pointer;
}
textarea.form-control {
    line-height: 1.75;
}
