* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #1a2b44;
    color: #000000;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-transform: uppercase;
    user-select: none;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

#searchInput {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    width: 300px;
    background-color: #2c3e50;
    color: #fff;
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(75, 108, 183, 0.7);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

#addBtn {
    background-color: #2ecc71;
    font-size: 20px;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#addBtn:hover {
    background-color: #27ae60;
}

#logoutBtn {
    background-color: #e74c3c;
    font-size: 20px;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logoutBtn:hover {
    background-color: #c0392b;
}






/* Gaya khusus untuk tombol hapus */
.action-btn i.fas.fa-trash {
    color: #fc8888; /* Warna ikon menjadi merah */
}

/* Gaya tombol hapus saat di-hover (opsional) */
.action-btn:hover i.fas.fa-trash {
    color: #cc0000; /* Warna ikon saat hover menjadi merah tua */
}

/* Jika ingin mengubah background tombol */
.action-btn {
    background-color: #ffffff; /* warna tombol default */
    border: 1px solid #ff0000; /* Border merah untuk tombol hapus */
    padding: 5px; /* Padding tombol */
    border-radius: 4px; /* Sudut membulat */
}

/* Background saat hover (opsional) */
.action-btn:hover {
    background-color: #ffe6e6; /* Background merah muda saat hover */
}







.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: none;
    border-radius: 3px;
    background-color: #ffffff;
    color: transparent; /* Sembunyikan teks default input file */
    cursor: pointer;
}

.file-input-wrapper .file-name {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none; /* Agar tidak mengganggu klik input */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}












.table-container {
    width: 100%;
    overflow-x: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
}

th, td {
    padding: 15px;
    text-align: left;
    border-right: 1px solid #ddd;
}

th {
    background-color: #4b6cb7;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

th:hover {
    background-color: #385899;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

.profile-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
}

.status-label {
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

.status-aktif {
    background-color: #2ecc71;
    color: #fff;
}

.status-tidak-aktif {
    background-color: #e74c3c;
    color: #fff;
}

.action-btn {
    background-color: #4b6cb7;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    padding: 8px;
    border-radius: 3px;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: #385899;
}

/* Dialog Styles */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    background-color: #2c3e50;
    margin: 50px auto;
    padding: 20px;
    width: 400px;
    border-radius: 5px;
    position: relative;
}

.dialog-content h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.form-scroll {
    max-height: 550px; 
    overflow-y: auto;
    padding-right: 10px;
}

.dialog-content label {
    display: block;
    margin: 15px 0;
    color: #ffffff;
}

.dialog-content input,
.dialog-content select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: none;
    border-radius: 3px;
    background-color: #ffffff;
    color: #000000;
}

#cropContainer {
    position: relative;
    max-width: 300px;
    max-height: 400px;
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cropCanvas {
    display: block;
    max-width: 100%;
    max-height: 400px;
}

.dialog-buttons {
    margin-top: 20px;
    text-align: right;
}

.center-buttons {
    text-align: center;
}

.dialog-buttons button:first-child {
    background-color: #2ecc71;
    margin-right: 10px;
}

.dialog-buttons button:first-child:hover {
    background-color: #27ae60;
}

.dialog-buttons button:last-child {
    background-color: #e74c3c;
}

.dialog-buttons button:last-child:hover {
    background-color: #c0392b;
}

/* Pagination */
.pagination {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#pageNumbers {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 5px 10px;
    background-color: #4b6cb7;
    border-radius: 3px;
    cursor: pointer;
}

.page-btn.active {
    background-color: #27ae60;
}

.page-btn:hover {
    background-color: #385899;
}

#prevBtn, #nextBtn {
    background-color: #7f8c8d;
}

#prevBtn:hover, #nextBtn:hover {
    background-color: #7f8c8d;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

#fullImage {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#closeModal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Login Dialog Styling */
#loginDialog .dialog-content {
    width: 350px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 500px; /* Pastikan ada ruang untuk ikon dan label */
}

#loginDialog h2 {
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.login-form label {
    color: #fff;
    font-weight: bold;
    margin-bottom: 2px;
}

.login-form input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

.login-form button {
    background-color: #2ecc71;
    padding: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-form button:hover {
    background-color: #27ae60;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 150px; /* 5x dari 30px */
    width: 100%;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.discord {
    background-color: #7289da;
}

.instagram {
    background-color: #e1306c;
}

.tiktok {
    background-color: #000000;
}

.osean-link {
    display: block;
    text-align: center;
    color: #97a8c2;
    margin-top: 100px; /* Jarak dari ikon sosial */
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 10px; /* Pastikan ada jarak dari bawah dialog */
    width: 100%;
}

.osean-link:hover {
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #dataTable {
        width: 1000px;
        min-width: 100%;
    }

    th, td {
        padding: 10px;
        font-size: 14px;
    }

    .profile-img {
        width: 40px;
        height: 40px;
    }

    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .dialog-content {
        width: 90%;
        padding: 15px;
    }

    #cropContainer {
        max-width: 100%;
    }

    h1 {
        font-size: 1.8em;
    }

    .controls {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }

    #addBtn, #logoutBtn {
        padding: 6px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    #searchInput {
        width: 100%;
        max-width: 200px;
        padding: 8px 12px;
        font-size: 14px;
    }

    #loginDialog .dialog-content {
        min-height: 350px; /* Sesuaikan untuk mobile */
    }

    .social-icons {
        margin-top: 100px; /* Sedikit lebih kecil di mobile agar tidak terlalu jauh */
    }
}