@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,600;1,14..32,600&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Quicksand:wght@300..700&display=swap');

body {
    margin: 0;
    font-family: "Quicksand", serif;
}

.container {
    display: flex;
}

#sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    height: 100vh;
    position: fixed;
    transition: width 0.3s;
    overflow: hidden;
    transition: width 0.3s;
}

#sidebar.collapsed {
    width: 60px;
}

#sidebar ul {
    list-style-type: none;
    padding: 0;
}

#sidebar ul li {
    padding: 4px 10px;
    cursor: pointer;
}

#sidebar ul li a {
    text-decoration: none;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
    border-radius: 10px;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
    background-color: #575757;
}

#sidebar.collapsed ul li a .nav-labels,
#sidebar.collapsed .sidebar-subtitle,
#sidebar.collapsed .sidebar-title h2 {
    display: none;
}

#sidebar.collapsed ul li a {
    justify-content: center;
}

#toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    margin: 10px;
    cursor: pointer;
}

.sidebar-head {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
}

.sidebar-title {
    display: flex;
    transition: all 1s ease;
}

.sidebar-subtitle {
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 1s ease;
}

main {
    margin-left: 250px;
    transition: margin-left 0.3s;
    width: 100%;
}

main.collapsed {
    margin-left: 60px;
}

/* Styling Hero dengan Background Gambar */
.hero {
    position: relative;
    background: url('https://erfan1977.wordpress.com/wp-content/uploads/2012/12/citra-martapura.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 800;
}

.cta-button:hover {
    background: #0056b3;
}

/* Styling untuk section features */
.features {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 60px 20px;
    background: #f8f9fa;
}

.feature-item {
    text-align: center;
    max-width: 300px;
}

.feature-item .feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 3px solid #007bff;
}

.feature-item h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.profile {
    list-style-type: none;
    padding: 0;
}

/* Styling untuk Section Sensor yang Digunakan */
.sensors {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.sensors h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.sensor-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.sensor-item {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    max-width: 300px;
    text-align: center;
}

.sensor-item .sensor-icon {
    width: 200px;
    height: 150px;
    margin-bottom: 15px;
}

.sensor-item img {
    object-fit: cover;
}

.sensor-item h3 {
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.sensor-item p {
    font-size: 1rem;
    color: #666;
}

/* Styling Section Titik Pemantauan */
.monitoring-points {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}

.monitoring-points h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.monitoring-cards {
    display: flex;
    align-items: start;
    height: fit-content;
    gap: 20px;
}

.stasiun-thumbnail {
    width: 100%;
    height: 200px;
    margin-right: auto;
    object-fit: cover;
    border-radius: 10px;
}

.card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #007bff;
}

.card .point-contents {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gotomaps {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: large;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.card p {
    font-size: 1rem;
    color: #666;
    margin: 5px 0;
    align-self: flex-start;
}


/* Styling untuk Lokasi dan Google Maps */
.location {
    background: #e9ecef;
    padding: 60px 20px;
    text-align: center;
}

.location-content {
    display: flex;
    gap: 15px;
}

.location h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.map-container iframe {
    border-radius: 10px;
}

.map-container {
    margin-bottom: 20px;
    width: 70%;
    border-radius: 10px;
    border: solid 2px #696969;
}

.contact-info {
    background-color: white;
    padding: 4px 20px;
    border-radius: 10px;
    height: fit-content;
    width: 30%;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    padding: 30px 10px;
    background-color: indigo;
    color: white;
    border-radius: 10px 10px 0px 0px;
    margin: -4px -20px;
    font-size: 24px;
}

.contact-info p {
    font-size: 1rem;
    color: #555;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hub-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 600;
    margin-bottom: 10px;
    width: 80%;
}

.hub-button:hover {
    background: #0056b3;
}

/* Footer Styling */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

.webgis-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.webgis-container main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.webgis-content {
    flex: 1;
    background: #e5e5e5;
    padding: 20px;
    transition: flex 0.3s ease;
}

.statitics {
    background: #fff url('https://media.giphy.com/media/dYtHPYJxZblCcWPwcQ/giphy.gif?cid=790b76116a3bcndoo3y4791uilamas77psbp6ci2o4zje87s&ep=v1_gifs_search&rid=giphy.gif&ct=g') no-repeat center center;
    background-size: cover;
    overflow: scroll;
    transition: all 0.3s ease;
    display: block;
    height: auto;
    padding-inline: 10px 10px;
}

.statitics.collapsed {
    background-color: #e5e5e5;
    border-top: 5px solid #000;
    height: 100px;
    overflow: hidden;
}

.statitics.collapsed #toggle-statistics {
    background-color: #000;
}

.statitics.collapsed #toggle-statistics::before {
    content: "Lihat Statistik";
}

.cards-webgis {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
}

.cards-webgis:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.cards-webgis .graphic-card {
    width: 40%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cards-webgis .graphic-card h2 {
    font-weight: 800;
    background-color: #007bff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    color: white;
    margin: 0;
}

.cards-webgis .graphic-card iframe {
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
}

.cards-webgis .card {
    width: 20%;
    background: #007bff;
    color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cards-webgis .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cards-webgis .card h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.cards-webgis .temperature,
.cards-webgis .humidity {
    margin-top: 10px;
}

.cards-webgis .block-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.cards-webgis .value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #f4f4f4;
}

.cards-webgis .card .temperature,
.cards-webgis .card .humidity {
    border-top: 1px solid #ffffff;
    padding-top: 10px;
    margin-top: 10px;
    width: 100%;
}

.cards-webgis .card .value {
    font-size: 2rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .cards-webgis {
        position: relative;
        flex-direction: column;
    }

    .cards-webgis .graphic-card {
        width: auto;
    }

    .cards-webgis .card {
        display: flex;
        position: relative;
        transition: transform 0.3s, box-shadow 0.3s;
        text-align: center;
        align-items: start;
        width: fit-content;
    }

    .cards-webgis .card h2 {
        text-align: center;
        width: 100%;
    }

    .monitoring-cards .card {
        width: auto;
    }

    .point-contents {
        flex-direction: column;
        gap: 10px;
    }

    .gotomaps::after {
        width: auto;
        content: "Go to Maps";
    }

    .gotomaps {
        text-decoration: none;
        font-weight: 800;
        color: #000;
    }

    .monitoring-cards,
    .location-content {
        flex-direction: column;
    }

    .map-container,
    .contact-info {
        width: fit-content;
    }
}


.toggle-statistic-section {
    margin-top: 10px;
    display: flex;
    justify-content: center;

}

#toggle-statistics {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#toggle-statistics::before {
    content: "Tutup Statistik";
}

#toggle-statistics:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#toggle-statistics:active {
    transform: scale(0.95);
}

/* Styling untuk Section About Us */

.about-container {
    display: flex;
    min-height: 100vh;
    background-color: #e5e5e5;
}

.about-content {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #007bff;
    font-weight: bold;
}

.about-content ul.profile {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.profile li {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile li:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.profile li img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #007bff;
}

.profile li h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.profile li p {
    font-size: 1rem;
    color: #555;
}

.custom-label {
    font-size: 20px;
    font-weight: 700;
    color: white;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.location-monitor {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    background-color: #000;
    color: white;
    align-items: start;
    justify-content: space-around;
    border-radius: 10px;
    gap: 10px;
    padding: 10px;
}

.location-monitor .coordinate {
    text-align: left;
    margin-left: 10px;
}

.location-monitor .type {
    text-align: right;
    margin-right: 10px;
}

.gatau {
    display: flex;
    background-color: white;
    color: #000;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding-block: 10px;
    border-radius: 10px;
}

.location-monitor p {
    margin: 0;
}

.coordinate h4 {
    margin: 0;
}

.coordinate {
    margin: 0;
}

.clock iframe {
    border-radius: 10px;
}

.clock {
    display: flex;
    width: auto;
    margin-top: 5px;
    justify-content: center;
    padding-inline: 10px;
    background-color: white;
    border-radius: 10px;
}