/* Menggunakan gambar sebagai background */
body {
    background-image: url('https://copyscribe.ai/wp-content/uploads/2023/11/muryumjamil_An_8-bit_v4_version_of_a_bustling_arcade_video_ga_4145f5fe-f2e0-4227-b6ea-c09d191dbf47_2.png'); /* Ganti dengan URL gambar asli */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    padding-top: 100px;
    overflow-x: hidden;
}

/* Menu Navigasi */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.7);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0 0 10px 10px;
    z-index: 1000;
}					   


/* Struktur Navigasi */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu ul li {
    margin: 0 20px;
}

.menu ul li.nav-items {
    margin-left: auto;
}

/* Tata Letak Meja Kerja */
.layout-container {
    max-width: 1200px;
    margin: 200px auto 20px;
    padding: 20px;
    background: rgba(34, 27, 27, 0.26);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgb(251, 255, 3);
    text-align: center;
    overflow: hidden; /* Pastikan semua elemen tetap berada di dalam */
}

/* Header Tata Letak Meja Kerja */
.layout-container .header-title {
    font-size: 30px;
    font-weight: bold;
    padding: 20px;
    width: 95%;
    color: white;
    background: linear-gradient(1300deg, #c9bd14, #ff0000);
    border-radius: 20px;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
    box-shadow: 0 4px 10px rgb(8, 8, 8);
    display: inline-block;
    margin-bottom: 20px;
}

/* Grid Container untuk Meja */
.grid-container {
    display: grid;
    gap: 9px;
    margin-top: 20px;
    justify-content: center;
    align-content: start;
    max-width: 100%;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.644);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

/* Meja Kerja */
.desk {
    background-color: rgba(207, 173, 62, 0.9);
    color: black;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.781),
                0 3px 5px rgb(192, 2, 2);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    width: 60px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}


/* Tambahkan kaki meja */
.desk::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 50%;
    height: 10px;
    background: rgb(190, 188, 159);
    border-radius: 5px;
    transform: translateX(-50%);
}

/* Hover pada Meja */
.desk:hover {
    background-color: rgba(204, 28, 28, 0.9);
    transform: translateY(-2px);
}

/* Shadow box pada menu */
.nav-link.shadow-box {
    text-decoration: none;
    color: rgb(209, 0, 0);
    font-size: 18px;
    padding: 12px 20px;
    transition: 0.3s;
    border-radius: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    box-shadow: 3px 3px 10px rgba(255, 255, 255, 0.3); /* Shadow box untuk efek 3D */
}

.nav-link.shadow-box:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-shadow: 3px 3px 7px rgba(255, 255, 255, 0.6);
    box-shadow: 4px 4px 12px rgb(224, 0, 0); /* Efek shadow lebih terang saat hover */
}

/* Efek hover pada menu */
.menu ul li a:hover {
    background: rgba(255, 0, 0, 0.1);
    transition: 0.3s;
}

/* Responsif */
@media screen and (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .menu ul {
        flex-direction: column;
        text-align: center;
    }
}

/* Styling untuk Judul Halaman */
.title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
    padding: 15px 30px;
    margin: 20px auto;
    width: fit-content;
    background: linear-gradient(90deg, #ffcc00, #ff4444);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.3s ease-in-out;
    animation: fadeIn 1s ease-in-out;
}

/* Efek Hover agar interaktif */
.title:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(255, 255, 255, 0.5);
}

/* Animasi untuk transisi masuk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wrapper agar tabel berada di tengah */
.table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 100%;
}

/* Tabel */
.table {
    width: 80%;
    max-width: 900px; /* Agar tidak terlalu lebar */
    margin: 0 auto;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Header Tabel */
.table th {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    text-transform: uppercase;
}

/* Isi Tabel */
.table td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Efek Hover */
.table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Wrapper untuk form agar berada di tengah */
.form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Grup Input agar sejajar */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Label untuk setiap input */
.input-group label {
    font-size: 14px;
    margin-bottom: 5px;
    color: white;
}

/* Input dan Select */
.input-group input {
    padding: 10px;
    width: 200px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
}

/* Tombol Tambah */
.btn-add {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

.btn-add:hover {
    background: #218838;
}

/* Styling khusus untuk DASHBOARD ADMIN */
.dashboard-link {
    background: linear-gradient(45deg, #ff0000, #ff8000);
    color: white !important;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.5);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.dashboard-link:hover {
    background: linear-gradient(45deg, #ff8000, #ff0000);
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(255, 69, 0, 0.7);
}

/* Styling khusus untuk LOGOUT */
.logout-link {
    background: linear-gradient(45deg, #ff4141, #c40000);
    color: white !important;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.logout-link:hover {
    background: linear-gradient(45deg, #c40000, #ff4141);
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(255, 0, 0, 0.7);
}
