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

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

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

/* Typography */
h1,
h2,
h3 {
    color: #34a0a4;
    text-align: center;
}

h3 {
    color: #5db3b6;
}

p {
    color: #0f575a;
}

/* 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;
}

.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;
}

/* Accounting Dashboard */
.accounting-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.transactions,
.financial-summary,
.accounts {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.transactions table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transactions table th,
.transactions table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.transactions table th {
    background-color: #34a0a4;
    color: white;
}

.summary-card {
    background-color: #f4f4f4;
    padding: 15px;
    margin: 10px;
    border-left: 5px solid #34a0a4;
    text-align: center;
}

.summary-card h3 {
    margin: 0 0 10px 0;
}

.accounts {
    display: flex;
    justify-content: space-between;
}

.accounts-card {
    background-color: #f4f4f4;
    padding: 20px;
    flex: 1;
    margin: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #34a0a4;
}

.accounts-card h2 {
    margin-bottom: 20px;
}

/* Button Styles */
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;
}

/* text */
tr  {
    color: #146366;
}

/* Media Queries */
@media (max-width: 768px) {
    .accounts {
        flex-direction: column;
    }

    .transactions table,
    .accounts-card {
        font-size: 14px;
    }
}

/* 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;
    }
  }