/* Root Variables */
:root {
    --primary-color: #4e5fe1; /* Accent color */
    --secondary-color: #38c172; /* Accent color */
    --background-color: #121212; /* Dark background */
    --header-background: #1e1e1e; /* Dark header background */
    --text-color: #e0e0e0; /* Light text */
    --light-text-color: #ffffff; /* White for light text */
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Softer shadow */
    --transition-speed: 0.3s; /* Smooth transition */
    --border-radius: 8px; /* Rounded corners */
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Modern font */
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: var(--header-background);
    color: var(--light-text-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.logo img {
    height: 40px;
    width: auto;
}

.headbar {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}

.headbar a {
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    transition: color var(--transition-speed);
}

.headbar a:hover {
    color: var(--primary-color);
}

.menubtn {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text-color);
    border-radius: 2px;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .headbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--header-background);
        width: 100%;
        border-top: 1px solid #444444;
    }

    .headbar.show {
        display: flex;
    }

    .headbar a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #444444;
        width: 100%;
    }

    .menubtn {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Main Content */
main.wallet {
    margin-top: 100px;
    padding: 20px;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    margin-top: -143px;
}

.container .heading {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-top: 217px;
    
}

.container hr {
    display: block;
    margin: 1em auto;
    border: 0;
    height: 2px;
    background: #333;
    width: 80%;
}

/* Balance Boxes */
.balance-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping */
}

.balance-boxes .box {
    background-color: #1e1e1e;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    min-width: 200px; /* Minimum width for each box */
    flex: 1; /* Allow boxes to grow and shrink */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.balance-boxes .box:hover {
    transform: translateY(-5px);
    background-color: #333333;
}

.balance-boxes .box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.balance-boxes .box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.balance-boxes .box span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Transaction List */
.transaction-list {
    margin-top: 2rem;
    background-color: #1e1e1e;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.transaction-list h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.transaction-list ul {
    list-style: none;
}

.transaction-list ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    transition: background-color var(--transition-speed);
}

.transaction-list ul li:hover {
    background-color: #333;
}

.transaction-list ul li i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.transaction-list ul li .date {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
