/* Menggunakan gambar sebagai background */
body {
    background-image: url('https://mir-s3-cdn-cf.behance.net/project_modules/fs/5416e852608839.5f02f27f9f51f.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;
}

/* 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 tabel jadwal */
.table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.801);
    color: rgb(255, 255, 255);
}

.table th, .table td {
    border: 1px solid white;
    padding: 10px;
    text-align: center;
}

.table th {
    background: rgb(55, 0, 255);
}

/* Garis pembatas di dalam kolom Nama Staff */
.table td:nth-child(2),
.table td:nth-child(3),
.table td:nth-child(4) {
    border-left: 2px solid white;
}

/* Alternatif untuk warna baris bergantian */
.table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.2);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Styling untuk judul Jadwal Piket */
.title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    padding: 15px;
    margin: 30px auto;
    width: fit-content;
    background: linear-gradient(90deg, #00ffff, #ff0000);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgb(0, 0, 0);
    text-transform: uppercase;
    letter-spacing: 10px;
    transition: transform 0.3s ease-in-out;
    animation: fadeIn 1s ease-in-out;
}

/* Efek hover agar lebih interaktif */
.title:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(255, 255, 255, 0.5);
}

/* Animasi masuk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Form Input */
.form-container {
    text-align: center;
    margin-bottom: 20px;
}

.form-container input {
    padding: 10px;
    margin: 5px;
    width: 200px;
    border: none;
    border-radius: 5px;
}

.form-container button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.form-container button:hover {
    background: #218838;
}

/* Tombol Aksi */
button {
    padding: 8px 12px;
    margin: 3px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    opacity: 0.8;
}

button[onclick^="editData"] {
    background: #ffc107;
    color: black;
}

button[onclick^="hapusData"] {
    background: #dc3545;
    color: white;
}

/* 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);
}
