/* assets/css/style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #061a14;
    color: #f0fdf4;
}

.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 10px;
    gap: 8px;
}

/* HEADER */
.app-header {
    height: 7vh;
    background: #0d2818;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 3px solid #10b981;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.univ-logo {
    height: 38px;
    width: auto;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #ecfdf5;
}

.clock-area {
    font-size: 1rem;
    font-weight: 600;
    color: #34d399;
    text-align: right;
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Sedikit disesuaikan agar seimbang dengan rasio video */
    gap: 10px;
    height: 68vh;
    align-items: start; /* Meregangan atau meratakan elemen agar pas dalam grid */
}

.card {
    background: #0d2818;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #143d26;
}

.card-header {
    background: #143d26;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #d1fae5;
}

/* VIDEO SECTION - FIX 16:9 */
.video-card {
    display: flex;
    flex-direction: column;
}

.video-card .video-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mengunci kontainer persis di rasio 16:9 */
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO SIDEBAR */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

/* Styling Kartu Kehadiran Berdampingan */
.coor-wrapper-card {
    /* Mengikuti konten di dalamnya secara fleksibel agar tidak terpotong */
    flex-shrink: 0;
}

.coor-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: #0d2818;
}

.coor-item {
    background: #113822;
    border-radius: 5px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #1b4d31;
}

.coor-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #34d399;
    flex-shrink: 0;
}

.coor-img-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #143d26;
    color: #6ee7b7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.coor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.coor-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
}

.coor-jabatan {
    font-size: 0.65rem;
    color: #34d399;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}

.coor-name {
    font-size: 0.8rem;
    color: #f0fdf4;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coor-catatan {
    color: #a7f3d0;
    font-size: 0.68rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* SIDANG TABLE & AUTO SCROLLING */
.sidang-card {
    flex: 1; /* Mengisi sisa ruang kosong di bawah sidebar kehadiran secara proporsional */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Penting agar flex item dapat melakukan scroll dengan benar */
}

.table-responsive {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Menyembunyikan scrollbar agar estetis di layar publik */
.table-responsive::-webkit-scrollbar {
    width: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #1b4d31;
    border-radius: 4px;
}

.sidang-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sidang-table th, .sidang-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #143d26;
}

.sidang-table th {
    background: #143d26;
    color: #a7f3d0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.badge-jalur {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-top: 2px;
    font-weight: 600;
}

.badge-jalur.reguler { background: #047857; color: #fff; }
.badge-jalur.publikasi { background: #0d9488; color: #fff; }
.badge-jalur.prototipe { background: #b45309; color: #fff; }
.badge-jalur.proyek { background: #15803d; color: #fff; }
.badge-jalur.chapter { background: #be185d; color: #fff; }

/* Styling Badge Status Kehadiran */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.65rem;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-badge.status-green { background-color: #059669; color: #ffffff; }
.status-badge.status-blue { background-color: #0284c7; color: #ffffff; }
.status-badge.status-purple { background-color: #7c3aed; color: #ffffff; }
.status-badge.status-yellow { background-color: #d97706; color: #ffffff; }
.status-badge.status-orange { background-color: #ea580c; color: #ffffff; }
.status-badge.status-red { background-color: #dc2626; color: #ffffff; }

/* FOOTER WRAPPER */
.app-footer-wrapper {
    background: #0d2818;
    border-top: 1px solid #143d26;
    flex-shrink: 0;
    width: 100%;
    border-left: 3px solid #34d399;
}

.tu-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: #d1fae5;
    background: #061a14;
}

.tu-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tu-col.center {
    align-items: center;
    text-align: center;
}

.tu-col.right {
    text-align: right;
}

.tu-title {
    font-weight: bold;
    color: #34d399;
    margin-bottom: 2px;
}

.qr-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    border-radius: 4px;
}

/* RUNNING TEXT FOOTER */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background: #0d2818;
    padding: 8px 0;
    border-top: 1px solid #143d26;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    color: #34d399;
    font-weight: bold;
    font-size: 0.95net;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}