/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fb;
    color: #333;
}

.container {
    width: 100%;
    padding: 0 20px;
    max-width: 960px;
    margin: auto;
}

nav.sidebar {
    width: 250px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

nav.sidebar h2 {
    font-size: 24px;
    margin-bottom: 40px;
    color: #333;
}

nav.sidebar ul {
    list-style-type: none;
}

nav.sidebar ul li {
    margin-bottom: 20px;
}

nav.sidebar ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px;
    display: block;
    border-radius: 8px;
}

nav.sidebar ul li a.active, nav.sidebar ul li a:hover {
    background-color: #007BFF;
    color: #fff;
}

main {
    flex-grow: 1;
    padding: 20px;
}

header {
    margin: 40px auto;
    text-align: center;
    max-width: 960px;
    padding: 0 20px;
}

header h1 {
    font-size: 32px;
    color: #333;
    text-align: center;
}

header .user-profile {
    display: flex;
    align-items: center;
}

header .user-profile p {
    margin-right: 10px;
    font-size: 16px;
}

header .user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.top-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.metric-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 30%;
    margin-bottom: 20px;;
}

@media(max-width: 560px){
    .metric-box {
        width: 100%;
    }
}

.metric-box h3 {
    font-size: 18px;
    color: #555;
}

.metric-box p {
    font-size: 24px;
    color: #333;
    margin-top: 10px;
}

.highlight-yellow {
    background-color: #ffed7c;
}


/* Table Styling */
.metric-table {
    width: 100%;
    padding: 10px 20px;
}

.metric-table thead {
    background-color: transparent;
    border-bottom: 1px solid #d6d6d6;
}


.metric-table td:first-child, .metric-table th:first-child {
    text-align: left;
} 
.metric-table td:last-child, .metric-table th:last-child {
    text-align: right;
} 


section {
    margin: 40px 0;
}

section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}


/* Table Styling */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Adds space between rows */
    margin-top: 20px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    background-color: #fff;
    padding: 10px 20px;
}

.custom-table thead {
    background-color: transparent;
    border-bottom: 1px solid #d6d6d6;
}

.custom-table th {
    text-align: left;
    font-size: 16px;
    color: #333;
    padding: 10px 5px;
}

.custom-table td {
    padding: 10px 5px;
    font-size: 16px;
    color: #333;
}

.custom-table td .item-info {
    display: flex;
    align-items: center;
}

.custom-table td img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #f8f8f8;
}

.custom-table .item-name {
    font-weight: bold;
    color: #333;
}

.custom-table .item-price {
    color: #888;
    font-size: 14px;
    margin-top: 3px;
}

.custom-table .currency-icon {
    background-color: #e0f7fa;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    font-size: 14px;
    color: #333;
    margin-right: 5px;
}

.custom-table td, .custom-table th{
    text-align: left;
}
.custom-table td:first-child, .custom-table th:first-child {
    text-align: left;
} 
.custom-table td:last-child, .custom-table th:last-child {
    text-align: right;
} 


/* Add padding and border-radius to each row */
.custom-table tbody tr {
    border-radius: 8px;
    overflow: hidden;
}

/* Remove the bottom borders from td */
.custom-table tbody tr td {
    border-bottom: none;
}

