/* General Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #d0e7ff;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.container.shifted {
    margin-left: 250px;
}

.card {
    display: inline-block;
    width: 300px;
    height: auto;
    padding: 10px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 2px 2px 10px #aaa;
    background: white;
    text-align: center;
    vertical-align: top;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.card .info {
    text-align: left;
    padding: 10px;
    font-size: 14px;
}

.highlight-box {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 5px;
    font-size: 12px;
}

.btn {
    display: block;
    padding: 10px;
    margin: 5px 0;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    transition: 0.3s;
    font-size: 14px;
}

.btn-tel {
    background-color: blue;
}

.btn-wa {
    background-color: green;
}

.btn-tel:hover {
    background-color: darkblue;
}

.btn-wa:hover {
    background-color: darkgreen;
}

.pagination {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    margin: 2px;
    border: 1px solid #007bff;
    background-color: transparent;
    color: #007bff;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
}

.pagination button:hover:not(.active) {
    background-color: #007bff;
    color: white;
}

.pagination button:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: white;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #555;
    margin: 0 10px;
}

.floating-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    border: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn img {
    width: 24px;
    height: 24px;
}

.floating-btn:hover {
    background-color: #0056b3;
}

.floating-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-end;
}

.floating-menu a {
    margin: 5px 0;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    display: block;
    font-size: 14px;
}

.floating-menu a:hover {
    background-color: #0056b3;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.open {
    left: 0;
}

.sidebar select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

#search-nama {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Toggle Button Styles */
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
    font-size: 16px;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

/* Overlay Styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Mobile Taskbar */
.mobile-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none; /* Sembunyikan taskbar secara default */
}

.taskbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    font-size: 12px;
    color: #007bff;
    border: none;
    background: none;
    cursor: pointer;
}

.taskbar-btn i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar,
    .toggle-btn,
    .floating-btn,
    .floating-menu {
        display: none !important;
    }

    .container {
        width: 100%;
        padding: 10px;
        margin-left: 0 !important;
        padding-bottom: 70px; /* Untuk memberi ruang bagi taskbar bawah */
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }

    .mobile-taskbar {
        display: flex; /* Tampilkan taskbar hanya di mobile */
    }
}