/* Reset and Universal Styles */
*,
*:before,
*:after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background Image Styling */
.hidden {
    display: none;
}

.table-container {
    margin-top: 20px;
}

.table-switcher {
    margin: auto;
    padding: auto;
    text-align: center;

    /* Keeps table-switcher in the same row as export buttons */

}

.table-switcher button {
    background-color: #34a0a4;
    /* Dark blue background  */
    color: white;
    /* White text color  */
    border: none;
    /* Remove border  */
    border-radius: 5px;
    /* Rounded corners  */
    padding: 10px 20px;
    /* Padding for size  */
    margin: 0 10px;
    /* Space between buttons  */
    cursor: pointer;
    /* Pointer cursor on hover  */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Smooth transition  */
}

.table-switcher button:focus {
    outline: none;
    /* Remove outline on focus */
}

.export-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
}

.export-csv-btn {
    background-color: #298588;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 10px;
}

.export-csv-btn:hover {
    background-color: #1c7376;
    transform: scale(1.05);
}

.export-csv-btn:focus {
    outline: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F9F9F9;
    margin: 0;
    padding: 0;
    background: #d4e6e7;
    /* Change this to your background image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
header {
    background-color: #34a0a4;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;

}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;

}

.nav-menu li {
    margin-right: 20px;
    cursor: pointer;
    margin: 0 10px;
    background-color: #e5f4f6;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

}

.nav-menu li a {
    color: #033537;
    text-decoration: none;
}

.nav-menu li:hover {
    background-color: #d7f2f4;
}




/* User Profile Dropdown */
.user-profile {
    display: flex;
    align-items: center;
    position: relative;
}

.user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    cursor: pointer;
}

button {
    background-color: #34a0a4;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #5db3b6;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 16px;
    padding-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}


.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Business Dashboard Styling */
.business-dashboard {
    padding: 20px 30px 40px 30px;
    background-color: #d4e6e7;
}

.business-dashboard h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #34a0a4;
}

/* Statistics Section */
.statistics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.stat-card {
    flex: 1;
    background-color: white;
    padding: 20px;
    margin: 0 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 1.25rem;
    color: #5db3b6;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2rem;
    color: #0f575a;
    font-weight: bold;
}

/* Table Switcher */
.table-switcher {
    margin: 0px 0;
    text-align: center;
}

.table-switcher button {
    background-color: #34a0a4;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.table-switcher button:hover {
    background-color: #1c7376;
    /* Lighter blue on hover */
    transform: scale(1.05);
    /* Slightly enlarge on hover */

}

.table-switcher button:focus {
    outline: none;
}

/* Tables */
.table-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 0.95rem;
}

table th {
    background-color: #34a0a4;
    color: white;
    font-weight: bold;
}

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

table tr:hover {
    background-color: #b6e4e7;
}

table td {
    border-bottom: 1px solid #ddd;
    color: #0f575a;
}

/* Data Section (Employee and Customer Overview) */
.data-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.data-table {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.data-table h2 {
    margin-bottom: 20px;
    color: #34a0a4;
}

/* Text */

h2 {
    color: #34a0a4;
    margin-bottom: 10px;
}




/* Responsive Design */
@media (max-width: 768px) {
    .statistics {
        flex-direction: column;
    }

    .stat-card {
        margin-bottom: 20px;
    }

    .data-section {
        flex-direction: column;
    }
}


.add-product-btn {
    background-color: #3f72af;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
    /* Reduce margin for closer alignment */
}

/* scroll bar */
/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #d4e6e7; /* Color of the scrollbar track */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #34a0a4; /* Color of the scrollbar thumb */
    border-radius: 10px;
    border: 2px solid #d4e6e7; /* Padding around the scrollbar thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #1c7376; /* Color of the scrollbar thumb on hover */
}
/* Responsivitas */
.menu-toggle {
    display: none;
    font-size: 20px;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
  }
/* Responsif untuk perangkat mobile */
@media (max-width: 768px) {
    .dashboard {
      grid-template-columns: 1fr;
    }
    /* Sembunyikan navigasi dan tampilkan tombol menu */
    .nav-menu {
      display: none; /* Sembunyikan menu pada perangkat mobile */
      flex-direction: column;
      width: 100%;
      background-color: #34a0a4;
      position: absolute;
      top: 60px;
      left: 0;
      z-index: 1;
      padding: 0;
    }

    .nav-menu li {
      margin: 0;
      padding: 15px;
      border-bottom: 1px solid #e5f4f6;
    }

    .menu-toggle {
      display: block; /* Tampilkan tombol menu pada perangkat mobile */
    }

    /* Tampilkan menu dropdown saat kelas 'show' ditambahkan */
    .nav-menu.show {
      display: flex;
    }

    /* Untuk menutup dropdown dengan klik di luar */
    .nav-menu-background {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.4);
      display: none;
    }

    .nav-menu-background.show {
      display: block;
    }
  }