@import url("brand.css");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Hanken Grotesk", sans-serif;
}

body {
    background-color: #f7f7f7;
    min-height: 100vh;
}

main {
    background-color: #ffffff;
    min-height: 100vh;
}

.bg-primary-custom {
    background-color: #00a056;
}

.primary-color {
    color: #387f39;
}

.text-primary {
    color: #00a056 !important;
}

.secondary-color {
    color: #235789;
}

.btn-primary-custom {
    background: linear-gradient(-90deg, #00aa5b -30.01%, #016d3b 170%);
    color: white !important;
    font-weight: bold;
}

.btn-primary-custom:hover {
    background: linear-gradient(-90deg, #00aa5b -30.01%, #016d3b 170%);
    color: white !important;
}

.btn-secondary-custom,
.btn-secondary-custom:focus,
.btn-secondary-custom:active,
.btn-secondary-custom:not(:focus):not(:active) {
    background-color: #235789 !important;
    border: 1px solid #000000;
    font-weight: bold;
    color: white !important;
}

.btn-secondary-custom:hover {
    background-color: #1d4163;
    border: 1px solid #000000;
    color: white;
}

.btn-outline-custom {
    border: 1px solid #387f39;
    color: #235789;
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
}

.btn-outline-custom:hover {
    border: 1px solid #387f39;
    color: #143b5e;
}

.btn-outline-custom:focus,
.btn-outline-custom:active {
    border: 1px solid #a2ca71;
    background: linear-gradient(-90deg, #00aa5b -30.01%, #016d3b 170%);
    outline: none;
    color: white !important;
}

.btn-outline-custom:not(:focus):not(:active) {
    border: 1px solid #387f39;
    color: #235789;
    background: transparent;
}

.input-outline-custom {
    border: 1px solid #387f39;
    color: #235789;
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
}

.input-outline-custom:hover {
    border: 1px solid #387f39;
    color: #143b5e;
}

.input-outline-custom:focus,
.input-outline-custom:active {
    outline: none;
    border: 1px solid #387f39; /* Tetap */
    color: #235789;
    background: transparent;
    transition: background 0.3s, border-color 0.3s;
}

.input-outline-custom:not(:focus):not(:active) {
    border: 1px solid #387f39;
    color: #235789;
    background: transparent;
}


.border-custom {
    border: 1px solid #235789 !important;
}

.bg-green-main {
    background-color: #387f39;
}

.text-main {
    color: var(--primary-green);
}

.loginscreen {
    overflow: hidden;
}

.form-wrapper {
    width: 90%;
    padding: 1rem;
    margin: auto;
}

.input-group-text {
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.max-w-screen-sm {
    max-width: 428px !important;
}

.min-h-full {
    min-height: 100% !important;
}

.my-0 {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.list-group-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header-container {
    position: fixed;
    margin: 0 auto;
    max-width: 428px;
    width: 100%;
    z-index: 11;
}

.header-wrapper {
    max-width: 428px;
    display: flex;
    margin: 0px auto;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    height: 60px;
}

.header-user {
    max-width: 428px;
    margin: 0px auto;
    -webkit-box-pack: justify;
    width: 100%;
}

.gradient-brand {
    background: linear-gradient(89.8deg, #d7f4b1 -18.28%, #f1d302 113.98%);
}

.gradient-brand-toRight {
    background: linear-gradient(-90deg, #00aa5b -30.01%, #016d3b 170%);
    color: white !important;
}

.gradient-top-bottom {
    background: linear-gradient(180deg, #d7f4b1 -0%, #f1d302 141%);
}

#home-page {
    min-height: calc(100vh - 60px);
}

.hero {
    height: 184px;
    /* background: url("../../../images/sampah-bg.png") rgba(5, 117, 230, 0.34); */
    background-size: cover;
    background-blend-mode: multiply;
}

.hero-text {
    text-align: left;
    position: absolute;
    top: 5%;
    left: 5%;
    color: white;
    font-size: 14px;
}

.landing-card-shadow {
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.1);
}

.font-sm {
    font-size: 14px !important;
}

.landing-footer {
    background-color: #d9d9d9;
}

.btn-circle {
    border-radius: 30px;
    margin: 0 1em;
    background-color: #0c0c20;
}

.main-container {
    box-sizing: border-box;
    position: relative;
    margin: 0px auto;
    background-color: rgb(255, 255, 255);
    width: 100%;
}

/* DASHBOARD PAGE */
#dashboard-page {
    min-height: calc(100vh - 256px);
}

.dashboard-header {
    margin: 0 auto;
    max-width: 428px;
    width: 100%;
}

.card-img-top {
    width: 100%;
    object-fit: cover;
}

.reward-name {
    overflow: hidden;
    max-width: 75ch;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sampah-desc {
    overflow: hidden;
    max-width: 75ch;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-limit {
    overflow: hidden;
    max-width: 20ch;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-header {
    position: relative;
    height: 200px;
    top: -90px;
    background: linear-gradient(180deg, #d7f4b1 -4.03%, #f1d302 100%);
    border-radius: 180px;
    z-index: 10;
    margin-bottom: -160px;
}

.bg-profile-detail {
    background-color: #6da7be;
}

#cart {
    background-color: white;
    position: -webkit-sticky;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0px;
    z-index: 1000;
}

.filter-tags-wrapper {
    display: flex;
    overflow-x: auto;
    white-space: nowrap; /* Prevent line breaks */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

.filter-tags-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.filter-tag {
    flex-shrink: 0;
    cursor: pointer;
    padding: 5px 15px;
    margin: 5px;
    border: 1px solid #016d3b;
    background-color: transparent;
    border-radius: 20px;
    color: #191919;
    white-space: nowrap;
}

.filter-tag.active {
    background-color: #016d3b;
    color: rgb(255, 255, 255);
}

.container-body {
    min-height: 100vh;
}

.news-img {
    width: 100px;
}

.judul-news {
    text-decoration: none;
}

.text-truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em; /* Sesuaikan dengan tinggi baris */
    line-height: 1.5em; /* Sesuaikan dengan tinggi baris */
}

.nominal-option.active {
    border: 2px solid #52c41a;
    background-color: #f0f0f0;
}
