/* === Base Reset & General === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #fff3e0, #ffe0cc);
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}
.status-page {
    padding: 40px 20px;
    font-family: 'Segoe UI', sans-serif;
}

.ambil-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.nomor-antrian {
    font-size: 3rem;
    color: #ff784e;
    display: inline-block;
    margin-top: 10px;
}

/* === Header === */
.header, .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffa485;
    color: #fff;
    flex-wrap: wrap;
}

.school-info {
    display: flex;
    align-items: center;
}

.school-info img, .logo {
    height: 80px;
    width: auto;
    margin-right: 20px;
}

.school-info h2 {
    font-size: 1.8rem;
    margin: 0;
}

.school-info p {
    font-size: 1.1rem;
    margin: 0;
}

.datetime {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 500;
}

.datetime #jam {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff784e;
}

/* === Grid Layout === */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Maks 8 petugas: 4 kolom x 2 baris */
    gap: 20px;
    padding: 20px 40px;
}

.grid-box, .box {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.petugas-box {
    background-color: #ffe8df;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.petugas-box.active {
    background: linear-gradient(135deg, #fff7e6, #ffe4c4);
    border: 3px solid #ff9800;
}

.petugas-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.nomor-display {
    font-size: 3.5rem;
    color: #ff784e;
    font-weight: 800;
    margin-top: 10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 rgba(255,152,0,0);
    }

    50% {
        box-shadow: 0 0 25px rgba(255,152,0,.5);
    }

    100% {
        box-shadow: 0 0 0 rgba(255,152,0,0);
    }
}

.petugas-box.active {
    animation: pulse 2s infinite;
}

/* === YouTube === */
.youtube-box {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.youtube-box iframe,
.youtube-box .yt-frame,
.youtube-frame {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: none;
    margin-bottom: 10px;
}

.youtube-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.youtube-form input[type="text"],
.youtube-box .yt-input {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.youtube-form input[type="submit"] {
    background-color: #ff8f66;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.youtube-form input[type="submit"]:hover {
    background-color: #ff7647;
}

/* === Buttons === */
.btn, .btn-orange, .btn-ambil, .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-orange {
    background-color: #ffa485;
    border-color: #ffa485;
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-ambil:hover {
    background-color: #ff9366;
}

.btn-orange:hover {
    background-color: #ff8f66;
    border-color: #ff8f66;
    transform: scale(1.02);
}

.btn-primary {
    background-color: #ff784e;
    color: white;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #ff5a24;
}

.btn-outline-orange {
    background-color: white;
    color: #ff784e;
    border: 2px solid #ff784e;
    font-size: 1.1rem;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    transition: 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: #ffece4;
    transform: scale(1.02);
}

/* === Alerts === */
.alert, .alert-success {
    font-size: 1.2rem;
    background-color: #fff7f3;
    border-left: 5px solid #ffa485;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #333;
    border: 1px solid #ffc0a1;
}

/* === Responsiveness === */
@media screen and (min-width: 1920px) {
    .box {
        font-size: 2rem;
        padding: 30px;
        min-height: 250px;
    }

    .youtube-box iframe,
    .youtube-box .yt-frame,
    .youtube-frame {
        height: 500px;
    }

    .header {
        padding: 30px 60px;
    }

    .datetime {
        font-size: 1.8rem;
    }

    .school-info h2 {
        font-size: 2.2rem;
    }

    .school-info p {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 1280px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        align-self: flex-end;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .youtube-box iframe,
    .youtube-box .yt-frame,
    .youtube-frame {
        height: 200px;
    }

    .box, .ambil-card {
        padding: 20px;
    }

    .title {
        font-size: 1.5rem;
    }

    .nomor-antrian {
        font-size: 2.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
/* =========================
   LOGIN PAGE
========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* =========================
   LOGIN CARD
========================= */

.login-card {

    width: 100%;
    max-width: 420px;

    background: #ffffff;

    padding: 40px;

    border-radius: 20px;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15);

    animation: fadeIn 0.5s ease;
}

/* =========================
   LOGIN ICON
========================= */

.login-icon {

    font-size: 70px;
    color: #0d6efd;

    margin-bottom: 10px;
}

/* =========================
   TITLE
========================= */

.login-title {

    font-weight: 700;

    margin-bottom: 5px;

    color: #1e293b;
}

.login-subtitle {

    color: #64748b;

    font-size: 14px;
}

/* =========================
   INPUT
========================= */

.input-group-text {

    background: #f1f5f9;

    border: 1px solid #ced4da;
}

.form-control {

    height: 50px;

    border-radius: 0 10px 10px 0;
}

.form-control:focus {

    border-color: #0d6efd;

    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15);
}

/* =========================
   BUTTON LOGIN
========================= */

.btn-login {

    height: 50px;

    border-radius: 12px;

    font-weight: 600;

    transition: 0.3s;
}

.btn-login:hover {

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {

    from {

        opacity: 0;
        transform: translateY(20px);
    }

    to {

        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================
   DASHBOARD PETUGAS PREMIUM
========================== */

.nomor-antrian-wrapper{

    text-align:center;
}

.nomor-label{

    font-size:18px;

    font-weight:600;

    letter-spacing:2px;

    color:#64748b;

    margin-bottom:10px;
}

.nomor-antrian-display{

    font-size:140px;

    font-weight:900;

    color:white;

    background:linear-gradient(
        135deg,
        #0d6efd,
        #4f46e5
    );

    border-radius:24px;

    padding:25px;

    line-height:1;

    box-shadow:
        0 15px 35px rgba(0,0,0,.15);
}

/* Tombol */

.btn-antrian{

    height:70px;

    font-size:20px;

    font-weight:700;

    border-radius:16px;

    transition: all .3s ease;
}

.btn-antrian:hover{

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
/* Riwayat */

.badge-riwayat{

    background:#f1f5f9;

    color:#0f172a;

    padding:10px 18px;

    border-radius:10px;

    font-size:18px;

    font-weight:700;
}

/* ==========================
   DASHBOARD STATISTIC
========================== */

.stat-card {

    padding: 20px;

    border-radius: 18px;

    color: white;

    box-shadow: 0 5px 15px rgba(0,0,0,.08);

    transition: .3s;
}

.stat-card:hover {

    transform: translateY(-3px);
}

.stat-card h6 {

    opacity: .9;

    margin-bottom: 10px;

    text-transform: uppercase;

    font-size: 13px;
}

.stat-number {

    font-size: 38px;

    font-weight: 700;
}

.stat-primary {
    background: linear-gradient(135deg,#0d6efd,#3d8bfd);
}

.stat-success {
    background: linear-gradient(135deg,#198754,#3cb371);
}

.stat-warning {
    background: linear-gradient(135deg,#fd7e14,#ffb347);
}

.stat-dark {
    background: linear-gradient(135deg,#343a40,#495057);
}

.stat-info {
    background: linear-gradient(135deg,#0dcaf0,#6edff6);
}

.last-call-card{

    margin:20px;

    padding:25px;

    border-radius:20px;

    background:linear-gradient(135deg,#0d6efd,#4f8cff);

    color:white;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.last-call-title{

    font-size:24px;

    font-weight:700;

    letter-spacing:2px;
}

.last-call-number{
    font-size:90px;
    font-weight:900;
    line-height:0.9;
    margin:10px 0;
}

.last-call-petugas{

    font-size:32px;

    font-weight:700;
}
