/* =========================================================
   HERO / CARD BASE WRAPPER
   ========================================================= */
.hero-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 2rem;
    z-index: 10;
    height: auto;
    min-height: 300px;
    border-radius: 100px;
    background: transparent;
    bottom: 5px;
}

/* Glow / blur background layer */
.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(16, 129, 198, 0.6);
    filter: blur(45px);
    z-index: -1;
}

/* =========================================================
   TAB HEADER (TER-SCOPE)
   ========================================================= */
.hero-card .content-card {
    display: flex;
    position: absolute;
    top: 20px;
}

.hero-card .card-header {
    padding: 15px 50px;
    border-radius: 10px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-card .card-header .icon-title {
    display: flex;
    gap: 30px;
}

.hero-card .card-header-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e4e4e4;
    padding: 8px;
    color: #ddd;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-card .card-header-icon:hover {
    color: #067aaf;
}

.hero-card .card-header-icon {
    background-color: #ffffff;
    transform: scale(0.95);
}

.hero-card .card-header-icon svg {
    width: 80%;
    height: auto;
    transition: fill 0.3s ease;
    color: #009de5;
}

.hero-card .card-header-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.hero-card .card-header-desc {
    font-size: 0.7rem;
    margin: 0;
}

/* =========================================================
   NAV TAB STATES
   ========================================================= */
/* .hero-card .nav-tabs .nav-link {
    background: transparent;
    border: none;
}

.hero-card .nav-tabs .nav-link .card-header-title,
.hero-card .nav-tabs .nav-link .card-header-desc,
.hero-card .nav-tabs .nav-link .card-header-icon {
    color: #e9e6e6;
}

.hero-card .nav-tabs .nav-link.active {
    background-color: transparent !important;
    border-color: transparent !important;
}

.hero-card .nav-tabs .nav-link.active .card-header-icon {
    background-color: #1081c699;
    color: #fff;
}

.hero-card .nav-tabs .nav-link.active .card-header-title,
.hero-card .nav-tabs .nav-link.active .card-header-desc,
.hero-card .nav-tabs .nav-link.active .card-header-icon {
    color: #fff;
} */

/* =========================================================
   NAV LINE + ARROW INDICATOR
   ========================================================= */
.hero-card .nav-tabs {
    /* position: relative; */
    justify-content: space-between;
    border-bottom: none !important;
}

/* garis dasar abu untuk semua */
.hero-card .nav-tabs::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #b6b4b4;
    border-radius: 3px;
    z-index: 0;
}

/* setiap nav-link wajib relatif */
.hero-card .nav-tabs .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.hero-card .nav-tabs .nav-link.active::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    z-index: 1;
}

/* panah segitiga dari atas */
.hero-card .nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px; /* sedikit di atas garis */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #ffffff;
}

.hero-card .nav-tabs .nav-link .card-header-title,
.hero-card .nav-tabs .nav-link .card-header-desc,
.hero-card .nav-tabs .nav-link .card-header-icon {
    color: #e9e6e6;
    transition: color 0.3s ease;
}

.hero-card .nav-tabs .nav-link.active .card-header-title,
.hero-card .nav-tabs .nav-link.active .card-header-desc,
.hero-card .nav-tabs .nav-link.active .card-header-icon {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.hero-card .nav-tabs .nav-link.active {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* =========================================================
   TAB CONTENT AREA
   ========================================================= */
.hero-card .tab-content {
    width: 100%;
    display: block;
    position: relative;
    padding-top: 0;
    margin-top: 9rem;
}

/* =========================================================
   FORM FIELD "CARD" STYLES
   ========================================================= */
.hero-card .card-conteks {
    width: 100%;
    /* min-width: 1000px; */
    min-height: 49px;
    flex-shrink: 0;
    border-radius: 18px;
    border: 1.3px solid #dadada;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    padding: 0.5rem 1rem;
}

.hero-card .card-conteks-2 {
    min-height: 49px;
    flex: 1 1 auto;
    border-radius: 18px 0 0 18px;
    border: 1.3px solid #dadada;
    border-right: none;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    padding: 0.5rem 1rem;
    color: #fff;
}

.hero-card .card-conteks-2::placeholder {
    color: #fff !important;
    opacity: 1;
}

/* =========================================================
   SELECT FIELDS
   ========================================================= */
.hero-card select.form-select {
    /* width: 170px; */
    color: #fff;
    background-color: transparent;
    border: 1px solid #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    font-size: 0.85rem;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    box-shadow: none;
}

.hero-card select.form-select option {
    background-color: #222;
    color: #fff;
}

/* =========================================================
   DATE INPUTS
   ========================================================= */
.hero-card input[type="date"] {
    color: #fff;
    background-color: transparent;
    border: 1px solid #fff;
}

.hero-card input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.hero-card input[type="date"]::placeholder {
    color: #fff;
    opacity: 0.7;
}

/* =========================================================
   TRACKING INPUT GROUP (DI TAB TRACKING)
   ========================================================= */
.hero-card .tracking-input-group {
    max-width: 600px;
    width: 100%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* <= 992px (tablet & down) */
@media (max-width: 992px) {
    .hero-card {
        width: 95%;
        top: 200px;
        padding: 1.5rem;
    }

    .hero-card .content-card {
        position: static;
        display: flex;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
    }

    .hero-card .nav-link {
        flex: 0 0 auto;
        min-width: 200px;
        background: transparent;
        padding: 0;
        border: none;
    }

    .hero-card .card-header {
        padding: 10px 30px;
        align-items: center;
    }

    .hero-card .card-header .icon-title {
        gap: 15px;
    }

    .hero-card .card-header-icon {
        font-size: 1.2rem;
        padding: 4px;
    }

    .hero-card .card-header-title {
        font-size: 0.9rem;
    }

    .hero-card .card-header-desc {
        font-size: 0.6rem;
    }

    .hero-card .tab-content {
        margin-top: 2rem;
        align-items: stretch;
    }

    /* Schedule tab stack */
    .hero-card #nav-schedule .row.d-flex {
        flex-direction: column;
    }

    .hero-card #nav-schedule .col-lg-5,
    .hero-card #nav-schedule .col-md-2 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-card #nav-schedule .col-md-2 {
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }

    /* Trucking tab stack */
    .hero-card #nav-trucking .row {
        flex-direction: column;
    }

    .hero-card #nav-trucking .col-md-5,
    .hero-card #nav-trucking .col-lg-2 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-card #nav-trucking .col-lg-2 {
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }

    /* Select font adjust */
    .hero-card select.form-select {
        font-size: 0.9rem;
    }
}

/* <= 576px (mobile) */
@media (max-width: 576px) {
    .hero-card .nav-tabs-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-left: 12px;
        box-sizing: border-box;
    }

    .hero-card .nav-tabs.content-card {
        flex-wrap: nowrap;
        width: max-content;
    }

    .hero-card .nav-tabs .nav-link {
        min-width: 180px;
        margin-right: 8px;
        white-space: normal;
    }

    .hero-card .tab-content-box {
        width: 100%;
    }

    .hero-card .card-header {
        padding: 8px 16px;
    }

    .hero-card .card-header-title {
        font-size: 0.85rem;
    }

    .hero-card .card-header-desc {
        font-size: 0.65rem;
    }

    .hero-card .card-header-icon {
        font-size: 1rem;
    }

    .hero-card .tracking-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-card .tracking-input-group .input-group-text,
    .hero-card .tracking-input-group input,
    .hero-card .tracking-input-group .btn {
        width: 100%;
        border-radius: 10px !important;
        margin-bottom: 0.5rem;
    }

    .hero-card .tracking-input-group .btn {
        margin-bottom: 0;
    }

    .hero-card .labels-row {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding-left: 0.75rem;
    }

    .hero-card .label-from,
    .hero-card .label-to {
        width: 100%;
        text-align: left !important;
        position: relative !important;
        left: 0 !important;
        margin-bottom: 0.25rem;
        min-width: auto;
    }

    .hero-card .card-conteks .row > div {
        width: 100% !important;
        margin-bottom: 0.75rem;
        justify-content: flex-start !important;
    }

    .hero-card .card-conteks .row > div.d-flex {
        gap: 0.5rem !important;
    }

    .hero-card .col-md-2 {
        width: 100%;
        margin-top: 1rem;
    }

    .hero-card .col-md-2 .btn {
        width: 100%;
    }

    .hero-card #nav-schedule .btn {
        width: 100%;
        margin-top: -1rem;
    }

    .hero-card .tab-pane .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .hero-card .card-conteks select {
        font-size: 0.85rem;
    }

    .hero-card .form-group {
        width: 100%;
    }

    .input-from-to {
        width: 501px;
    }

    .hero-card .card-conteks {
        margin-bottom: 5px;
    }
}

/* =========================================================
   OPTIONAL: WRAPPER VARIAN CUSTOM TABS
   ========================================================= */
.hero-card .tabs-wrapper-custom {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hero-card .tabs-wrapper-custom .nav-tabs {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 1rem;
    border-bottom: 1px solid #ddd;
}

.hero-card .tabs-wrapper-custom .nav-tabs .nav-item {
    flex: 0 0 auto;
}

.hero-card .tabs-wrapper-custom .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

@media (min-width: 1999px) {
    .hero-card {
        bottom: 208px;
    }

    .hero-card .card-header-title {
        font-size: 2rem;
    }
}
