/* =====================================================
   SIMANTAP DISPLAY
   DISPLAY ANTRIAN TV / LCD
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =====================================================
   HTML & BODY
===================================================== */

html,
body {

    width: 100%;
    height: 100%;

    overflow: hidden;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        url("../img/bg2.png")
        center bottom
        / cover
        no-repeat;

    color: #ffffff;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {

    width: 100vw;
    height: 100vh;

    display: grid;

    grid-template-rows:

        80px          /* Header */

        minmax(0, 1fr) /* Display utama */

        105px         /* Informasi */

        35px;         /* Footer */

}


/* =====================================================
   HEADER
===================================================== */

.header {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    padding: 5px 25px;

    background:
        rgba(5, 70, 38, 0.95);

    border-bottom:
        3px solid #FFD54F;

}


.header-logo {

    display: flex;

    align-items: center;

    justify-content: center;

}


.logo {

    width: 55px;

    height: auto;

    object-fit: contain;

}


.header-title {

    text-align: left;

}


.header-title h2 {

    font-size: 17px;

    line-height: 1.1;

    font-weight: 700;

}


.header-title h1 {

    margin-top: 2px;

    font-size: 23px;

    line-height: 1;

    color: #FFD54F;

    font-weight: 700;

}


.header-title p {

    margin-top: 3px;

    font-size: 13px;

    line-height: 1.1;

}


/* =====================================================
   DISPLAY UTAMA
   KIRI  : NOMOR + LIST
   KANAN : VIDEO
===================================================== */

.display-main {
    min-height: 0;

    display: grid;

    grid-template-columns:
        20%
        80%;

    gap: 15px;

    padding: 12px 18px;
}


/* =====================================================
   PANEL KIRI
===================================================== */

.display-left {

    min-width: 0;

    min-height: 0;

    display: grid;

    grid-template-rows:
        minmax(0, 55%)
        minmax(0, 45%);

    gap: 10px;

}


/* =====================================================
   NOMOR YANG DIPANGGIL
===================================================== */

.display-number {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 10px;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.15);

}


.display-number span {

    font-size: clamp(18px, 1.8vw, 28px);

    font-weight: 600;

    letter-spacing: 1px;

}


.display-number h1 {

    margin-top: 5px;

    font-size: clamp(65px, 8vw, 115px);

    line-height: 0.95;

    color: #FFD54F;

    font-weight: 800;

    text-shadow:
        0 0 10px rgba(255, 213, 79, 0.35);

}


.display-number h2 {

    margin-top: 8px;

    font-size: clamp(20px, 2vw, 32px);

    font-weight: 600;

}


/* =====================================================
   LIST PANGGILAN / LOKET
===================================================== */

.loket-list {

    width: 100%;

    height: 100%;

    min-height: 0;

    overflow: hidden;

    background:
        rgba(0, 0, 0, 0.16);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 12px;

}


.loket-title {

    padding: 7px 10px;

    text-align: center;

    font-size: 16px;

    font-weight: 700;

    color: #FFD54F;

    letter-spacing: 1px;

}


.loket-list table {

    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

}


.loket-list th {

    padding: 7px;

    background: #FFD54F;

    color: #123;

    font-size: 14px;

    font-weight: 700;

}


.loket-list th:first-child {

    width: 65%;

}


.loket-list th:last-child {

    width: 35%;

}


.loket-list td {

    padding: 6px 8px;

    font-size: 15px;

    font-weight: 500;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.10);

}


.loket-list td:last-child {

    text-align: center;

    font-size: 17px;

    font-weight: 700;

    color: #FFD54F;

}


/* =====================================================
   PANEL KANAN
   VIDEO
===================================================== */

.display-right {

    min-width: 0;

    min-height: 0;

    display: flex;

    align-items: stretch;

    justify-content: stretch;

}


/* =====================================================
   VIDEO BOX
===================================================== */

.video-box {

    position: relative;

    width: 100%;

    height: 100%;

    min-height: 0;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #000;

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.25);

}


#displayVideo {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    background: #000;

}


/* =====================================================
   VIDEO CONTROLS
===================================================== */

.video-controls {

    position: absolute;

    right: 15px;

    bottom: 15px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 7px 10px;

    background:
        rgba(0, 0, 0, 0.55);

    border-radius: 10px;

    z-index: 100;

    opacity: 0.45;

    transition:
        opacity 0.3s ease;

}


.video-controls:hover {

    opacity: 1;

}


#btnVolume {

    width: 38px;

    height: 38px;

    border: none;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.15);

    color: #fff;

    font-size: 20px;

    cursor: pointer;

}


#volumeSlider {

    width: 90px;

    cursor: pointer;

}


/* =====================================================
   INFORMASI PELAYANAN
===================================================== */

.display-info {

    min-width: 0;

    overflow: hidden;

    padding: 7px 18px;

    background:
        rgba(4, 60, 32, 0.90);

    border-top:
        2px solid rgba(255, 213, 79, 0.50);

}


.info-title {

    text-align: center;

    font-size: 14px;

    font-weight: 700;

    color: #FFD54F;

    letter-spacing: 1px;

    margin-bottom: 5px;

}


.info-content {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

}


.info-item {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 5px 10px;

    background:
        rgba(255, 255, 255, 0.07);

    border-radius: 7px;

}


.info-item strong {

    flex-shrink: 0;

    font-size: 12px;

    color: #FFD54F;

}


.info-item span {

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 11px;

}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 18px;

    background:
        #063d23;

    border-top:
        3px solid #FFD54F;

}


.footer marquee {

    flex: 1;

    margin-right: 15px;

    font-size: 13px;

}


#clock {

    flex-shrink: 0;

    margin-left: 15px;

    font-size: 17px;

    color: #FFD54F;

    font-weight: 700;

}


/* =====================================================
   AUDIO BUTTON
===================================================== */

#btnAudio {

    border: none;

    border-radius: 8px;

    background: #FFD54F;

    color: #063d23;

    font-weight: 700;

    cursor: pointer;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .container {

        grid-template-rows:
            70px
            minmax(0, 1fr)
            100px
            32px;

    }


    .header {

        padding: 5px 15px;

    }


    .logo {

        width: 45px;

    }


    .header-title h2 {

        font-size: 13px;

    }


    .header-title h1 {

        font-size: 19px;

    }


    .header-title p {

        font-size: 11px;

    }


    .display-main {

        grid-template-columns:
            minmax(250px, 40%)
            minmax(0, 60%);

        gap: 10px;

        padding: 8px 12px;

    }


    .display-number span {

        font-size: 16px;

    }


    .display-number h1 {

        font-size: 65px;

    }


    .display-number h2 {

        font-size: 20px;

    }


    .loket-list td {

        font-size: 13px;

    }


    .info-content {

        gap: 6px;

    }


    .info-item {

        padding: 4px 6px;

    }

}


/* =====================================================
   LAYAR SANGAT KECIL
===================================================== */

@media (max-height: 650px) {

    .container {

        grid-template-rows:
            65px
            minmax(0, 1fr)
            85px
            30px;

    }


    .display-main {

        padding: 7px 12px;

        gap: 10px;

    }


    .display-left {

        gap: 7px;

    }


    .display-number h1 {

        font-size: 60px;

    }


    .display-number h2 {

        font-size: 18px;

    }


    .loket-title {

        padding: 4px;

        font-size: 13px;

    }


    .loket-list th,
    .loket-list td {

        padding: 4px;

    }


    .info-title {

        font-size: 12px;

        margin-bottom: 2px;

    }


    .info-item span {

        font-size: 10px;

    }

}
