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

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

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

.nav-menu li {
    margin: 0 10px;
    cursor: pointer;
    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 {
    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: #3F72AF;
    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: #033537;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

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

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

main {
    padding: 2rem;
}

.stats {
    display: flex;
    justify-content: space-around;
}

.stat {
    background-color: rgb(0, 0, 0);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 45%;
}

.stat h3 {
    margin-bottom: 10px;
}

section {
    margin-top: 2rem;
}

ul {
    padding: 0;
    list-style: none;
}

ul li {
    background-color: #d3ebed;
    color: #022324;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

ul li:hover {
    background-color: #97ced1;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card ul {
    list-style: none;
}

.balance {
    color: green;
}

.chart {
    margin-top: 10px;
    text-align: center;
}

.new-invoice {
    background-color: #959596;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.logo img {
    max-height: 60px;
    margin-right: 90px;
}

/* Body General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F9F9F9;
}

/* Typography */
h1, h2, h3 {
    color: #34a0a4;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

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

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

.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: #97ced1;
    margin-bottom: 10px;
}

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

/* Graph Section */
.graph-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.chart-container {
    width: 100%;
    height: 400px;
    padding: 20px;
    background-color: #FFF;
}

/* Data Table Section */
.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: #3F72AF;
}

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: #146366;
}

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

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

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

a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

p {
    color: #022324;
}

.table-switcher .btn {
    background-color: #3F72AF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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