/* @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); */

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
    text-decoration: none;
    --color-1: #5ba5f4;
    --color-2: #de9013;
    --color-3: #e3daa4;
    --color-4: #93b2c1;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    background: #f4f6f9;
    color: #333;
    background-image: url("images/pattern.png");
    background-size: cover;
}

.aksi {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}


/* ========================================================= Header ========================================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(90deg, #0f2027, #203a43, var(--color-1));
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .left_area h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

header .left_area h3 span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #ccc;
}

header .center_area {
    flex: 1;
    margin-left: 50px;
    text-align: center;
}

header .right_area {
    display: flex;
    align-items: center;
    gap: 15px;
}

header .clock {
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

header .blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

header .logout_btn {
    padding: 6px 14px;
    background: #ff4757;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

header .logout_btn:hover {
    background: #ff6b81;
}


/* ========================================================= Alert ========================================================= */

.alert {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: none;
    width: fit-content;
    padding: 20px;
    height: 40px;
    background-color: var(--color-3);
    font-size: 14px;
    border-radius: 5px;
}

.hide {
    display: none;
}

.alert-info {
    color: black;
}

.alert-close {
    float: right;
    padding: 2px;
    background-color: var(--color-1);
    color: #fff;
    width: 70px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.alert-close:hover {
    color: var(--color-1);
    background-color: white;
    border: 1px solid var(--color-1);
}


/* ========================================================= Side Bar ========================================================= */

aside {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: 100%;
    background: #2d3e50;
    color: white;
    padding-top: 20px;
    transition: 0.3s;
    overflow-y: auto;
}

aside .profile_image {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 50%;
    /* biar bulat */
    background: #fff;
    /* kasih background putih kalau png transparan */
    padding: 5px;
    /* kasih jarak biar glow tidak ketutup */
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.8), /* glow biru lembut */
    0 0 20px rgba(0, 200, 255, 0.6), 0 0 30px rgba(0, 200, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

aside .profile_image:hover {
    transform: scale(1.1);
    /* zoom dikit saat hover */
    box-shadow: 0 0 15px rgba(0, 200, 255, 1), 0 0 30px rgba(0, 200, 255, 0.9), 0 0 45px rgba(0, 200, 255, 0.7);
}

aside h4 {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: normal;
    color: white;
}

aside .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    transition: 0.3s;
}

aside .menu-item i {
    margin-right: 12px;
    font-size: 16px;
}

aside a {
    text-decoration: none;
    color: white;
}

aside .menu-item:hover {
    background: #1b2838;
    padding-left: 25px;
    cursor: pointer;
}

.menu-item {
    /* background-color: #15a857; */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.menu-item i {
    flex: 1;
    text-align: center;
}

.menu-item span {
    flex: 6;
    text-align: left;
}


/* ========================================================= Content ========================================================= */

.content {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: calc(100%-250px);
    margin-left: 250px;
    margin-bottom: 50px;
    padding-top: 70px;
    /* background: url(images/walpaper.jpg) no-repeat; */
    background-size: cover;
    background-position: center;
    /* min-height: 100vh; */
    transition: margin-left 0.5s;
}

#check {
    display: none;
}

#check:checked~aside {
    /* lebar menu */
    left: -190px;
}

#check:checked~aside a span {
    display: none;
}

#check:checked~aside a {
    font-size: 20px;
    text-align: center;
    margin-left: 190px;
    /* lebar highlight */
    width: 60px;
    transition: all 0.5s;
}

#check:checked~aside center {
    opacity: 0;
    transition: all 0.5s;
}

#check:checked~.content {
    margin-left: 60px;
}


/* ========================================================= About ========================================================= */

.about {
    width: 80%;
    margin: 0;
    text-align: justify;
}


/* ========================================================= Login ========================================================= */

.login {
    width: 300px;
    height: 300px;
    background: #2f323a;
    margin-top: 200px;
    color: #fff;
    font-weight: normal;
}

.tabel-login {
    width: 100%;
    border-collapse: collapse;
}

.tabel-login tr:first-child th {
    background: var(--color-1);
}

.tabel-login th {
    padding-top: 20px;
}

.tabel-login h3,
h4 {
    font-weight: normal;
    color: #fff;
}

.tabel-login input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.tabel-login button {
    margin-top: 20px;
    width: 100%;
    padding: 5px;
    background: var(--color-1);
    color: #fff;
    border: none;
    padding: 10px 0;
    cursor: pointer;
}


/* ========================================================= Home ========================================================= */

.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.home-wallpaper {
    width: 100%;
}

.home-wallpaper img {
    width: 500px;
}

.home-info {
    /* margin-top: 20px; */
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    justify-content: center;
}

.home-info h2,
h4 {
    margin: 0px;
    color: black;
}


/* ========================================================= Galeri ========================================================= */

.galeri {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    gap: 20px;
    /* background: cyan; */
    /* min-height: 100vh; */
}

.galeri-item {
    width: 300px;
    border: 2px solid var(--color-1);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.568);
}


/* ========================================================= konten ========================================================= */

.konten-container {
    background: rgba(21, 154, 127, 0.8);
    margin: 10px;
    /* semi transparan */
    backdrop-filter: blur(12px);
    /* efek glass */
    -webkit-backdrop-filter: blur(12px);
    /* safari support */
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow-x: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Efek saat hover (naik sedikit & glow tipis) */

.konten-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.konten-container .header-konten {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.konten-container .header-konten h2 {
    background-color: var(--color-2);
    padding: 10px 20px;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
    letter-spacing: 1px;
}

.konten-container .tabel {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin: auto;
    min-width: 400px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.konten-container .tabel th {
    border: none;
    text-align: center;
    padding: 12px 10px;
    background: var(--color-1);
    color: white;
    font-weight: 600;
}

.konten-container .tabel th:first-child {
    width: 50px;
}

.konten-container .tabel td {
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    transition: background 0.3s;
}

.konten-container .tabel tr:nth-child(odd) {
    background-color: var(--color-3);
}

.konten-container .tabel tr:nth-child(even) {
    background-color: var(--color-4);
}

.konten-container .tabel tr:hover td {
    background-color: #f0f4f8;
    cursor: pointer;
}


/* Button Actions */

.btn-action {
    padding: 6px 10px;
    border-radius: 5px;
    margin: 0 3px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.btn-tambah {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.4);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}


/* Hover efek glowing */

.btn-tambah:hover {
    background: linear-gradient(135deg, #5dade2, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(41, 128, 185, 0.6);
}


/* Efek saat ditekan */

.btn-tambah:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.5);
}


/* Opsional: tombol biru dengan efek glow */

@keyframes blueGlow {
    0% {
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    }
    50% {
        box-shadow: 0 0 18px rgba(52, 152, 219, 0.9);
    }
    100% {
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
    }
}

.btn-tambah.glow {
    animation: blueGlow 1.8s infinite;
}

.btn-action.edit {
    background: #27ae60;
}

.btn-action.edit:hover {
    background: #1e8449;
}

.btn-action.hapus {
    background: #e74c3c;
}

.btn-action.hapus:hover {
    background: #c0392b;
}


/* ========================================================= Tambah Container ========================================================= */

.tambah-container {
    /* margin: 30px auto; */
    margin-top: 20px;
    padding: 30px 35px;
    width: 600px;
    background: rgba(34, 125, 194, 0.85);
    /* biru transparan modern */
    backdrop-filter: blur(12px);
    /* efek kaca */
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    animation: fadeIn 0.6s ease;
}

.tambah-container h3 {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    letter-spacing: 0.5px;
}

.tambah-container label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
    opacity: 0.9;
}

.tambah-container input,
.tambah-container textarea,
.tambah-container select {
    margin-bottom: 15px;
    width: 100%;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #e9ebfb;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.tambah-container select {
    background: rgba(255, 255, 255, 0.15);
    color: #e9ebfb;
    appearance: none;
    /* buang style bawaan */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.tambah-container select option {
    background: #2a3d66;
    /* warna dropdown item */
    color: #e9ebfb;
}

.tambah-container input::placeholder,
.tambah-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.tambah-container input:focus,
.tambah-container textarea:focus,
.tambah-container select:focus {
    border-color: #4facfe;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.6);
}

.tambah-container .btn {
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.tambah-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 191, 255, 0.6);
}


/* animasi masuk */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================================= Footer ========================================================= */

.modern-footer {
    background: linear-gradient(135deg, #141e30, #243b55);
    color: #fff;
    text-align: center;
    padding: 30px 15px;
    margin-top: 40px;
    font-family: "Roboto", sans-serif;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}


/* Efek garis tipis animasi */

.modern-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #15a857, transparent);
    animation: movingLine 4s linear infinite;
}

@keyframes movingLine {
    from {
        left: -50%;
    }
    to {
        left: 100%;
    }
}

.footer-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.85;
}

.footer-socials {
    margin-top: 15px;
}

.footer-socials a {
    display: inline-block;
    margin: 0 8px;
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    color: #15a857;
    transform: translateY(-3px) scale(1.1);
}


/* ========================================================= Modal ========================================================= */

.modal-content {
    background-color: #fefefe;
    padding: 10px;
    border-radius: 20px;
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -150%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 9999;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}


/* ========================================================= Modal Ver 2 ========================================================= */


/* .modal {
    display: none;
    position: fixed;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.3);
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -150%);
    opacity: 0;
}

.modal.show {
    display: block;
}

.modal.show .modal-content {
    animation: waterfall-in 0.6s ease forwards;
}

.modal.closing .modal-content {
    animation: waterfall-out 0.6s ease forwards;
}

@keyframes waterfall-in {
    0% {
        transform: translate(-50%, -150%);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -45%);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes waterfall-out {
    0% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -45%);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -150%);
        opacity: 0;
    }
} */

.close {
    color: red;
    padding: 10px;
    margin-top: -25px;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}