/* ========================================= */
/* 1. General & Global Styles       */
/* ========================================= */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Oswald', sans-serif;
    background-color: #f4f6f9;
    /* Warna latar belakang netral */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/img/resiskom.png') center/contain no-repeat;
    opacity: 0.5;
    /* Opasitas dikurangi agar tidak terlalu ramai */
    z-index: -1;
}

/* ========================================= */
/* 2. Header Styles              */
/* ========================================= */
.atas {
    background-color: rgb(244, 240, 43);
    height: 50px;
    width: 100%;
}

.section-header {
    max-width: 1600px;
    margin: -30px auto 0 auto;
    height: 80px;
    border-radius: 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#logo {
    width: 350px;
    height: 70px;
    object-fit: contain;
}

.header-info-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-table {
    color: rgb(15, 103, 177);
    font-size: 16px;
    font-weight: bold;
}

.weather-widget {
    display: flex;
    align-items: center;
    background-color: rgb(15, 103, 177);
    /* Latar belakang abu-abu muda transparan */
    padding: 5px 10px;
    border-radius: 10px;
}

.weather-widget img {
    width: 40px;
    height: 40px;
}

.weather-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-left: 8px;
    /* Sedikit menambah jarak dari ikon */
}

.weather-details .temp {
    font-size: 1.2rem;
    font-weight: bold;
    color: #212529;
    /* Warna diubah menjadi hitam pekat agar kontras */
}

.weather-details .description {
    font-size: 0.8rem;
    color: #495057;
    /* Warna diubah menjadi abu-abu gelap */
}

/* ========================================= */
/* 3. Main Layout & Titles            */
/* ========================================= */
.section-title {
    background: rgba(255, 255, 255, 0.8);
}

.section-title h2 {
    background-color: #ffffff;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    color: #0c0b0b;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.card-deck-custom {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 15px;
    height: 100%;
}

.deck-title {
    font-weight: bold;
    border-bottom: 3px solid #ffc107;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.card-deck-custom .card {
    opacity: 1;
}

/* ========================================= */
/* 4. Desain Kartu Jadwal (Versi 8)      */
/* ========================================= */
.card-jadwal-v8 {
    display: flex;
    height: 370px;
    border-radius: 15px;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.card-left-pane-v8 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    color: #000000;
    position: relative;
}

.identity-wrapper {
    z-index: 2;
}

.profile-pic-v8 {
    width: 130px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid #fff;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mahasiswa-name-v8 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.mahasiswa-nim-v8 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.seminar-tag-v8 {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    /* Gelapkan sedikit untuk kontras */
    display: inline-block;
}

/* Warna Latar Belakang Kolom Kiri */
.tag-proposal {
    background-color: #007bff;
}

.tag-hasil {
    background-color: #eeff00;
}

.tag-sidang {
    background-color: #28a745;
}

.tag-default {
    background-color: #6c757d;
}

.card-right-pane-v8 {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.info-group {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 12px;
    margin: 5px;
}

.info-group:last-of-type {
    border-bottom: none;
    flex-grow: 1;
}

.judul-seminar-v8 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #343a40;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.dosen-grid-v8 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dosen-item-v8 {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.dosen-role {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: bold;
}

.dosen-item-v8 strong {
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-group-footer {
    margin-top: auto;
    margin: 5px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-bar-upcoming {
    background-color: #007bff;
}

.status-bar-lulus {
    background-color: #28a745;
}

.status-bar-mengulang {
    background-color: #dc3545;
}

.status-bar-default {
    background-color: #6c757d;
}

/* ========================================= */
/* 5. Grafik & Widget Bawah             */
/* ========================================= */
.custom-card {
    border: 3px solid rgb(244, 240, 43);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px;
}

.custom-card-title {
    font-size: 15px;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin-bottom: 20px;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#yearInput {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    /* Sudut input lebih tumpul */
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#yearInput:focus {
    outline: none;
    border-color: #007bff;
    /* Warna border saat input aktif */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* ========================================= */
/* 6. Footer Styles              */
/* ========================================= */
footer {
    position: fixed;
    background-color: #ffffff;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    border-top: 2px solid rgb(244, 240, 43);
}

.breaking-news {
    display: flex;
    align-items: center;
    height: 40px;
}

.breaking-news .d-inline-flex {
    background-color: rgb(250, 243, 108);
    font-weight: bold;
    padding: 0 20px;
    height: 100%;
    align-items: center;
}

.news-scroll {
    font-size: 18px;
    color: #0d6efd;
    flex-grow: 1;
}

/* ========================================= */
/* 7. Carousel Fungsionalitas           */
/* ========================================= */
.carousel.grabbable {
    cursor: grab;
}

.carousel.grabbable.active-drag {
    cursor: grabbing;
}

/* ========================================= */
/* 8. Responsive Media Queries          */
/* ========================================= */
@media (max-width: 991px) {

    /* Kartu Jadwal */
    .card-jadwal-v8 {
        height: auto;
    }

    .card-left-pane-v8 {
        border-radius: 0;
    }

    .profile-pic-v8 {
        width: 100px;
        height: 100px;
    }

    .mahasiswa-name-v8 {
        font-size: 1rem;
    }

    .dosen-grid-v8 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .card-right-pane-v8 {
        padding: 15px;
        margin-bottom: 10px;
    }

    .judul-seminar-v8 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {

    /* Header */
    .section-header {
        padding: 5px 10px;
        height: auto;
        flex-wrap: wrap;
    }

    #logo {
        width: 150px;
        height: auto;
    }

    .header-info-wrapper {
        gap: 15px;
    }

    .time-table,
    .time-table td {
        font-size: 13px;
        line-height: 1.2;
    }

    .time-table i {
        font-size: 12px;
    }

    .weather-widget {
        padding: 2px 5px;
        gap: 5px;
    }

    .weather-widget img {
        width: 30px;
        height: 30px;
    }

    .weather-widget .temp {
        font-size: 1rem;
    }

    .weather-widget .description {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {

    /* Header untuk layar sangat kecil */
    #logo {
        width: 120px;
    }

    .time-table,
    .time-table td {
        font-size: 11px;
    }

    .header-info-wrapper {
        gap: 10px;
    }
}