@import url("var.css");

/* RESPONSIVE */
@media (max-width: 576px) {
    .title-header {
        font-size: 20px !important;
        /* line-height: 20px !important; */
    }
    .desc-header {
        font-size: 14px !important;
    }
    #pie-chart-md,
    #legend-hz {
        display: none;
    }
    #pie-chart-sm {
        display: block !important;
    }

    .circular {
        height: 6.5rem !important;
        width: 6.5rem !important;
    }

    .circular:before {
        height: 3.5rem !important;
        width: 3.5rem !important;
    }

    .card-filter {
        margin-bottom: 3rem;
    }
    .row-repo {
        gap: 2em;
        padding: 0 1rem;
    }
}

@media (min-width: 1200px) {
    .card-warning i.icon {
        position: relative;
        font-size: 9em !important;
        top: -3rem;
        color: red;
    }

    .page-footer .container {
        padding-top: 5em;
    }
    /* .row-repo {
        gap: 0 !important;
        padding: 0 0 !important;
    } */
    .col-repo:first-child::after {
        content: "";
        border-right: 1px solid #b8b8b8;
    }
    .number-repo {
        font-size: 1.5rem;
    }

    .col-repo:not(:first-child):not(:last-child)::after {
        content: "";
        /* border-left: 1px solid #b8b8b8; */
        border-right: 1px solid #b8b8b8;
    }
}

/* MOBILE FIRST DESIGN */
.title-header {
    font-size: 25px;
    color: black;
    line-height: 1.2;
    font-weight: 700;
}

.sub-title-header {
    font-size: 20px;
    color: #000000;
    line-height: 20px;
    font-weight: 500;
}

.desc-header {
    font-size: 16px;
    color: #626262;
    font-weight: 300;
}

/* icons hazard */
.circle-icon {
    display: flex;
    /* align-content: center; */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    vertical-align: middle;
    width: 9em;
    height: 9em;
    border: 0.8em solid #333;
    border-radius: 50%;
}

/* i.humanitarian-icon {
    display: inline-block;
    font-size: 4.5em;
} */

.card-donut {
    background-color: transparent;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    width: 100%;
    padding: 10px;
    text-align: center;
}

.donut-chart {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    border: 7px solid;
    border-color: inherit;
    /* background-image: conic-gradient(#FF6384 0 40%, transparent 40% 100%); */
}

.donut-chart::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    /* background-color: #fff; */
    border-radius: 50%;
}

.icon-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 45px;
    color: inherit;
}
.card-donut {
    color: #00418f;
}
.card-donut:hover {
    color: #ff1721 !important;
    cursor: pointer;
    transition: 0.4s;
}
.donut-info span {
    margin: 15px 0 5px;
    font-size: 24px;
    font-weight: 600;
    color: inherit;
}
.donut-info .donut-txt {
    margin: 0;
    font-size: 14px;
    /* color: #000000; */
    font-weight: 300;
}

.donut-info p {
    margin: 0;
    font-size: 18px;
    color: #777;
}

/* chart 3d */
#container {
    height: 400px;
}

.card-filter {
    /* width: 200px; */
    padding: 20px;
    border-radius: 30px;
    filter: brightness(12px);
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    background-color: #ffffff;
}

.circle {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 100vmax;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.circle-text {
    position: absolute;
    width: 100%;
    height: 100%;
    text-transform: uppercase;
    font-weight: 600;
}
.circle-text span {
    position: absolute;
    left: 44%;
    font-size: 10px;
    font-weight: 600;
    /* line-height: 19px; */
    transform-origin: 5px 44px;
    color: #ffffff;
}
.icon-disaster {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 100%;
    padding: 5px;
    /* box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.5),
        2px -1px 4px rgba(0, 0, 0, 0.22); */
    filter: drop-shadow(0 0 0.1rem #000000);
}

.pie-hz {
    /* margin: 0 4rem; */
    padding: 0;
    position: relative;
    border: none;
    height: 1.5rem;
    width: 3rem;
    border-radius: 1.5rem;
    background: #155789;
    color: #bdc1c8;
    display: flex;
    /* align-content: center; */
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.hazard-chart::after {
    border-bottom: 2px solid;
}

.pie-hz.btn-lg {
    height: 5rem;
    width: 18.5rem;
    border-radius: 3.5rem;
}
.pie-hz.btn-lg > .handle {
    height: 8.5rem;
    width: 8.5rem;
    left: -1px;
    border-radius: 5.875rem;
    background: #6b7381;
}
#pie-chart-sm {
    display: none;
}
.circular {
    position: relative;
    height: 5.5rem;
    width: 5.5rem;
    left: -1px;
    /* background: conic-gradient(var(--bgcolor) 3.6deg, #ededed 0deg); */
    background: conic-gradient(var(--bgcolor) var(--radius), #cbcbcb 0deg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular:before {
    content: "";
    position: absolute;
    height: 3.5rem;
    width: 3.5rem;
    background-color: #ffffff;
    border-radius: 50%;
}

.circular-text {
    color: #ffffff;
    padding-top: 1rem;
}

.icon-hz {
    position: relative;
    width: 34px;
    height: 34px;
}

.progres-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
}

.progres-txt {
    font-size: 13px;
    color: #ffffff !important;
    font-weight: 500;
    opacity: 1;
    list-style: 1;
}

.form-check-image {
    width: 70px;
    height: 40px;
    border: 0.2em solid #ddd;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 1px 5px;
}

.form-acdm-flag {
    width: max-content;
    row-gap: 12px;
    column-gap: 12px;
    display: flex;
    flex-direction: column;
}

.mt-10e {
    margin-top: 10rem !important;
}

.inf-hz-container {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    max-width: 100%;
    pointer-events: none;
}

.card-warning {
    top: -10em;
    width: 10em;
    height: auto;
    background: #ffffff;
    border-radius: 2rem;
    /* transition: height 4s; */
    transition: all 2s ease;
}

.card-warning i.icon {
    position: relative;
    font-size: 6em !important;
    top: -2rem;
    left: -20px;
    color: red;
}

.card-warning .card-title {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 8px;
    /* line-height: 16px; */
}

.card-warning .card-content {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    text-align: center;
    transition: max-height 0.6s ease;
    padding: 0px 11px;
    font-size: 12px;
}

.card-content::before {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s;
    margin-bottom: 8px;
}

.card-warning:hover {
    /* // max-height technique */
    box-shadow: rgb(15 100 159 / 35%) 0px 5px 15px;
    .card-content {
        max-height: 20em;
    }
    .card-content::before {
        width: 100%;
    }
}

/* btn */

/* repo */

.col-repo {
    width: 100%;
}
.number-repo {
    font-size: 1.5rem;
    font-weight: 600;
}

/* table */
.w-70 {
    width: 70% !important;
}
.table thead {
    border-bottom: 2px solid transparent;
}
.table thead tr th {
    background: #ffffff;
    border-radius: 2rem;
    /* Add your new styles here */
    padding: 7px 10px;
    text-align: left;
    font-weight: bold;
    /* display: inline-flex; */
    margin: 10px 10px;
    /* width: 30%; */
}
.table thead tr th:last-child {
    background: transparent !important;
    border-radius: 0;
}
.table tbody tr:not(:first-child):not(:last-child)::after {
    content: "";
    /* background: transparent !important; */
    /* border-radius: 0; */
    border-bottom: 12px solid #b8b8b8;
}
.table > :not(caption) > * > * {
    padding: 1.5rem 0.5rem;
    text-align: left;
    border-bottom-width: 0;
}
.table tbody tr {
    border-bottom: 2px solid #dddddd;
}
.table tbody tr td:hover i {
    transform: translateX(12px);
    cursor: pointer;
}

/* tabs filter */
.nav-pills {
    background-color: var(--bs-blue-soft);
    padding: 8px;
    border-radius: 100px;
    overflow: auto;
    flex-wrap: nowrap;
}
.nav-pills .nav-link {
    padding: 12px 32px;
    font-weight: bold;
    color: var(--bs-blue);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--bs-blue) !important;
    color: var(--white) !important;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: bold;
}

/* SM */
.nav-pills.sm {
    padding: 6px;
}
.nav-pills .nav-link.sm {
    padding: 8px 24px;
    font-weight: bold;
    color: var(--bs-blue);
}
.nav-pills .nav-link.sm.active,
.nav-pills .show > .nav-link {
    background-color: var(--bs-blue) !important;
    color: var(--white) !important;
    padding: 8px 24px;
    border-radius: 100px;
    font-weight: bold;
}

/*Marquee / Running Text*/
.marquee-container {
    max-width: 100%;
    /*    margin: 15px auto;*/
    overflow: hidden;
}

.Marquee {
    background: var(--bs-blue);
    width: 100vw;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0.5em;
    color: #fff;
    font-weight: 200;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: box;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -o-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    overflow: hidden;
    /*    margin: 15px auto;*/
}

.Marquee-content {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: box;
    display: flex;
    -webkit-animation: marquee 50s linear infinite running;
    -moz-animation: marquee 50s linear infinite running;
    -o-animation: marquee 50s linear infinite running;
    -ms-animation: marquee 50s linear infinite running;
    animation: marquee 50s linear infinite running;
}

.Marquee-content:hover {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    -ms-animation-play-state: paused;
    animation-play-state: paused;
}

.Marquee-tag {
    /* width: 200px; */
    width: max-content;
    margin: 0 0.5em;
    padding: 0.5em;
    background: rgba(255, 255, 255, 0.1);
    display: -webkit-inline-box;
    display: -moz-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-box;
    display: inline-flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -o-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -o-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
    color: #ffffff !important;
}

.Marquee-tag:hover {
    background: rgba(255, 255, 255, 0.5);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    cursor: pointer;
    color: #ffffff !important;
}

@-moz-keyframes marquee {
    0% {
        -webkit-transform: translateX(50%);
        -moz-transform: translateX(50%);
        -o-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    100% {
        -webkit-transform: translate(-100%);
        -moz-transform: translate(-100%);
        -o-transform: translate(-100%);
        -ms-transform: translate(-100%);
        transform: translate(-100%);
    }
}
@-webkit-keyframes marquee {
    0% {
        -webkit-transform: translateX(50%);
        -moz-transform: translateX(50%);
        -o-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    100% {
        -webkit-transform: translate(-100%);
        -moz-transform: translate(-100%);
        -o-transform: translate(-100%);
        -ms-transform: translate(-100%);
        transform: translate(-100%);
    }
}
@-o-keyframes marquee {
    0% {
        -webkit-transform: translateX(50%);
        -moz-transform: translateX(50%);
        -o-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    100% {
        -webkit-transform: translate(-100%);
        -moz-transform: translate(-100%);
        -o-transform: translate(-100%);
        -ms-transform: translate(-100%);
        transform: translate(-100%);
    }
}
@keyframes marquee {
    0% {
        -webkit-transform: translateX(50%);
        -moz-transform: translateX(50%);
        -o-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    100% {
        -webkit-transform: translate(-100%);
        -moz-transform: translate(-100%);
        -o-transform: translate(-100%);
        -ms-transform: translate(-100%);
        transform: translate(-100%);
    }
}

/*END MARQUEE*/

.scrollable-list {
    max-width: 100%; /* Sesuaikan dengan kebutuhan Anda */
    overflow-x: auto; /* Hanya scroll secara horizontal */
    white-space: nowrap; /* Mencegah item melipat ke baris berikutnya */
    scroll-behavior: smooth; /* Efek scroll mulus */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
