/*04May2025 19.26 WIB*/
html, body {
    background: #f8fafd; /* atau warna dari main_infoqc.php */
    color: #000000; /* Warna teks default */
    min-height: 100vh;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    margin: 0px;
    padding: 0px;
    }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #7cacf84b;
    padding: 10px 20px;
    border-bottom: 1px solid #d3e3fd;
    z-index: 1000;
    overflow-x: hidden;
}

.navbar-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    flex-shrink: 0;
}

.navbar-title {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #031786;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 10px;
}
.menu-icon i {
    color: #031786 !important;
    font-size: 1.8rem;
}

.navbar-links {
    display: flex;
    gap: 3px;
    align-items: center;
}
.navbar-links a {
    text-decoration: none;
    color: #031786;
    font-weight: normal;
    font-size: 0.8rem;
    padding-right: 27px;
    white-space: nowrap;
}
.navbar-links a:hover {
    text-decoration: underline;
    color: #ffc107;
    font-weight: bold;
    transition: color 0.3s ease;
}
.navbar-links span {
    text-decoration: none;
    color: #ffc107;
    font-weight: normal;
    font-size: 0.8rem;
    padding-right: 50px;
    white-space: nowrap;
}
.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding: 0px 70px;
}
.header h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: blue;
    padding: 10px;
    margin: 0;
}

.header a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: blue;
}

.container {
    background: #f8fafd;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2px;
    border-radius: 12px;
    box-shadow: 0 0 20px #0004;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
}
.wrapper {
    max-width: 1200px;
    color: #ffffff;
    margin: 0 auto;
    display: flex;
    border-bottom: 1px solid #ddd;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
/* Pengaturan gambar thumbnail di main_infqc.php dan details.php*/
        .thumbnail {
            display: inline-block;
            justify-items: center;
            text-align: center;
            background-color:#e9f0fe;
            border-radius: 8px;
            padding: 10px 10px; /* Padding kanan kiri 20px */
            transition: transform 0.3s, box-shadow 0.3s;
            margin: 8px; /* Tambahkan margin untuk jarak antar thumbnail */
            vertical-align: top; /* Pastikan thumbnail tampil horisontal */
            /* box-shadow: #7cacf8 0px 0px 8px 1px; */
        }

        .thumbnail :hover {
            transform: translateY(-5px); 
            box-shadow: 0 8px 16px #7cacf8;
        }

        .thumbnail img {
            width: 200px;
            height: 100px;
            object-fit: stretch;
            border-radius: 8px;
            
        }

        .date-caption {
            text-decoration: none;
            margin-top: 10px;
            font-weight: normal;
            color: #7cacf8;
            font-size: 1rem;
            
        }


  /* Modal styling agar sesuai Bootstrap 5 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: #f8fafd;
            overflow: auto;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background: #e9f0fe;
            color: #222;
            margin: 5% auto;
            border-radius: 8px;
            padding: 2rem;
            max-width: 800px;
            box-shadow: 0 0 20px #0002;
            position: relative;
            animation: zoom 0.6s;
        }
        
        @keyframes zoom {
            0% {
                transform: scale(0);
                transform-origin: center center;
                opacity: 0;
            }
            100% {
                transform: scale(1);
                transform-origin: center center;
                opacity: 1;
            }
        
        }

        #modal-form button[type="submit"] {
            margin-top: 1rem;
        }

            
    
        .close {
                position: absolute;
                top: 12px;
                right: 18px;
                color: rgb(230, 226, 11);
                font-size: 2rem;
                font-weight: bold;
                cursor: pointer;
                z-index: 10;
                transition: 0.3s;
            }

            .close:hover {
                color: #db0f0f;
                cursor: pointer;
            }
    


.add-btn {
    background: #7cacf8;
    color: blue;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 8px;
    float: right;
    vertical-align: middle;
}

.add-btn:hover {
    background: #ffffff;
    color: blue;
}


/* Halaman Logout */
.logout-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
    text-align: center;
    padding: 30px; /* Add padding to ensure text is fully visible */
    box-sizing: border-box; /* Include padding in width calculations */
}
  
.logout-title {
    color: #ffc107; /* Warna kuning */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.logout-message {
    color: #343a40; /* Warna abu-abu gelap */
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.logout-link {
    color: #007bff; /* Warna biru */
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
}

 .image-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        margin-top: 30px;
        
        
    }
    .image-grid>:hover{
        cursor: pointer;
        transform: scale(1.5); /* Efek zoom saat hover */
        transition: transform 0.8s ease;
        box-shadow: 0 0 20px #7cacf8;
    }

    .image-item {
        width: 100%; /* Default width untuk grid layout */
        border: 0px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff;
        text-align: center;
    }

    .image-item img {
        width: 100%;
        height: 200px; /* Atur tinggi gambar */
        max-width: 100%;
        display: block;
        object-fit: fit; /* Memastikan gambar tetap proporsional */
        border-radius: 8px;
        transition: transform 0.3s ease;
        cursor: pointer;
        /* border: 2px solid #666; */
        box-shadow: 0 2px 4px #7cacf8;
    }
  
    .pdf-list {
        width: 100%;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .pdf-item {
        width: 100%;
        margin-bottom: 20px;
    }
    .pdf-item a {
        color: #7cacf8;
        text-decoration: none;
    }

    .pdf-item a:hover {
        text-decoration: underline;
    }

    .pdf-item h4 {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .btn-download {
        display: inline-block;
        margin-top: 10px;
        padding: 10px 15px;
        background-color: blue;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: bold;
    }

    .btn-download:hover {
        background-color: #fff;
        color: blue;
    }

    .bottom-navbar {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        background: #7cacf84b;
        color: #7cacf8;
        border-top: 1px solid #7cacf8;
        z-index: 1200;
        height: 56px;
        box-shadow: 0 -2px 8px #0002;
        justify-content: space-around;
        align-items: center;
    }

    .bottom-nav-link {
        flex: 1 1 0;
        text-align: center;
        color: #7cacf8;
        text-decoration: none;
        font-size: 0.63rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 6px 0 2px 0;
        transition: background 0.2s;
    }

    .bottom-nav-link i {
        font-size: 1.0rem;
        margin-bottom: 2px;
    }

    .bottom-nav-link:active,
    .bottom-nav-link:hover {
        background: blue;
        color: #fff;
    }

  /* Responsive Styles */
        @media (max-width: 768px) {
            .navbar {
                flex-direction: row;
                align-items: center;
                padding: 10px 10px;
                width: 100%;
                overflow-x: hidden;
            }
            .navbar-logo {
                margin-bottom: 0;
                margin-right: 10px;
                width: 26px;
                height: 26px;
            }
            .navbar-title {
                font-size: 0.95rem;
                text-align: left;
            }
            .menu-icon {
                display: block;
                margin-left: 10px;
                z-index: 2001;
            }
            
            .navbar-links {
                display: none;
                flex-direction: column;
                width: 100%;
                background: #7cacf84b;
                margin-top: 10px;
                border-radius: 0 0 8px 8px;
                padding: 10px 0;
                position: absolute;
                left: 0;
                top: 50px;
                z-index: 2000;
                box-shadow: 0 2px 8px #0002;
                align-items: flex-start;
            }
            .navbar-links.show {
                display: flex!important;
            }
            
            .header, .subheader {
                flex-direction: column;
                text-align: center;
            }

            .thumbnail {
                width: 45%;
            }
            
            .image-grid {
                grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk layar tablet */
            }

            .image-item {
                width: 100%;  /* Pastikan item menyesuaikan dengan grid */
            }
             .bottom-navbar {
                display: flex;
            }
            #userTable, #userTable thead, #userTable tbody, #userTable th, #userTable td, #userTable tr {
                display: block;
            }
            #userTable thead tr {
                display: none;
            }
            #userTable tr {
                margin-bottom: 15px;
                border: 1px solid #ccc;
                border-radius: 8px;
                background: #fff;
                box-shadow: 0 2px 8px #0001;
                padding: 8px 0;
            }
            #userTable td {
                text-align: left;
                padding-left: 50%;
                position: relative;
                border: none;
                border-bottom: 1px solid #eee;
                min-height: 40px;
            }
            #userTable td:before {
                position: absolute;
                top: 8px;
                left: 12px;
                width: 45%;
                white-space: nowrap;
                font-weight: bold;
                color: #7cacf8;
                content: attr(data-label);
            }
        }


        @media (max-width: 480px) {
            .navbar {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 10px 5px;
                width: 100%;
                overflow-x: hidden;
            }
            .navbar-logo {
                width: 20px;
                height: 20px;
                margin-right: 8px;
            }
            .navbar-title {
                font-size: 0.8rem;
            }
            .menu-icon {
                display: block;
                margin-left: 8px;
                z-index: 2001;
            }
            .menu-icon i {
                color: #fff !important; /* Pastikan ikon burger selalu putih */
                font-size: 1.8rem;
            }

            .navbar-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 50px;
                right: 5px;
                background: #7cacf84b;
                border-radius: 0 0 8px 8px;
                padding: 10px 15px;
                min-width: 150px;
                z-index: 3000; /* Pastikan dropdown di atas konten lain */
                box-shadow: 0 2px 8px #0002;
                align-items: flex-start;
            }

            .navbar-links.show {
                display: flex;
            }
            .navbar-links a {
                margin: 5px 0;
                font-size: 0.9rem;
            }

            .container{
                max-width: 100%;
                margin: 0 auto; /* Center the container */
                padding: 0 10px; /* Reduce padding for smaller screens */
            }

            .thumbnail {
                display: inline-block;
                margin: 8px auto; /* Center horizontally */
                text-align: center;
                padding: 10px;
                background-color: #e9f0fe;
                width: 80%;
                
            }
            .header {
                flex-direction: column;
                align-items: center;
                padding: 0px 20px; /* Kurangi padding untuk layar kecil */
                margin-top: 60px; /* Tambahkan margin untuk menghindari tumpang tindih dengan navbar */
                margin-bottom: 10px; /* Tambahkan margin bawah untuk jarak */
            }

            .header h3 {
                font-size: 1rem;
            }

            .add-btn{
                font-size: 0.9rem;
                padding: 8px 10px;
            }
        
            
            .date-caption {
                font-size: 0.9rem;
            }

            .image-grid {
                grid-template-columns: 1fr; /* 1 kolom untuk layar ponsel */
            }
            .image-item {
                width: 100%; /* Pastikan item memenuhi lebar layar */
                margin: 0 auto; /* Tambahkan margin agar lebih rapi */
            }
               .data-table {
                font-size: 0.8rem; /* Ukuran font lebih kecil untuk tabel */
            }
        
       
            .btn-delete, .btn-edit,.btn-download {
                font-size: 0.42rem; /* Ukuran font lebih kecil */
                padding: 5px 10px; /* Padding lebih kecil */
                margin: 2px; /* Tambahkan margin kecil untuk jarak antar tombol */
                display: inline-block; /* Pastikan tombol tetap dalam satu baris */
            }

                .data-table td {
                    text-align: center; /* Pusatkan teks di dalam tabel */
                }

                .data-table td a {
                    display: inline-block; /* Pastikan tombol tetap dalam satu baris */
                }

            .bottom-navbar {
                display: none; /* Sembunyikan navbar bawah secara default */
            }
                
            .bottom-navbar.show {
                display: flex;
            }
            #userTable td {
                font-size: 0.65rem;
                padding-left: 40%;
            }
        }