@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

:root {
    --navbar-height: 60px;
}

body {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding-top: var(--navbar-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Styling */
.navbar {
    background-color: #2c3e50;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-logo a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 0;
    display: block;
}

.navbar-logo a:hover {
    color: #3498db;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu li a {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar-menu li a:hover {
    background-color: #34495e;
    border-bottom: 3px solid #3498db;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    top: 100%;
    left: 0;
    min-width: 220px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-menu li a {
    padding: 12px 20px;
    border-top: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        background-color: #2c3e50;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 500px;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu li a {
        padding: 15px 20px;
        border-top: 1px solid #34495e;
    }

    .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 400px;
    }

    .navbar-logo a {
        padding: 10px 0;
        font-size: 18px;
    }
}

/* Tablet/Responsive Content Styles */
@media (max-width: 768px) {
    body {
        margin: 10px;
        padding-top: var(--navbar-height);
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
        margin: 10px 0;
    }

    .dashboard {
        width: 100%;
        padding: 15px;
        margin: 10px 0;
    }

    h2 {
        font-size: 24px;
        margin: 10px 0;
    }

    h3 {
        font-size: 18px;
        margin: 15px 0 10px 0;
    }

    input, textarea, select, button {
        padding: 12px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    button {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    table {
        font-size: 14px;
        margin-top: 15px;
    }

    th, td {
        padding: 10px;
        font-size: 13px;
    }

    .progress-bar {
        height: 25px;
    }

    .report-container {
        width: 100% !important;
        padding: 20px !important;
    }
}

/* Main Content Container */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 20px;
    padding: 0;
}

.container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 600px;
    margin: 20px auto;
    flex: 1;
}

/* Balance cards */
.balance-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
    justify-content: flex-start;
}
.balance-card {
    flex: 1 1 240px;
    min-width: 0;
    max-width: 320px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.balance-card h4 {
    margin: 0;
    font-size: 16px;
}
.balance-card .amounts {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
}
.balance-card .available {
    color: #2ecc71;
}

/* Responsive breakpoints for balance cards */
@media (max-width: 1024px) {
    .balance-card {
        flex: 1 1 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

@media (max-width: 800px) {
    .balance-card {
        flex: 1 1 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 600px) {
    .balance-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.dashboard {
    width: 1200px;
    margin: 20px auto;
}

h2 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
}

input, textarea, select, button {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: bold;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Clickable table rows (report listings) */
.clickable-row {
    cursor: pointer;
}
.clickable-row:hover {
    background-color: #f5f8fa;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Responsive Design for Mobile Devices - Tablet */

@media (max-width: 480px) {
    body {
        margin: 8px;
        padding: 0;
    }

    .container {
        padding: 15px;
        margin: 8px 0;
    }

    .dashboard {
        padding: 10px;
        margin: 8px 0;
    }

    h2 {
        font-size: 20px;
        margin: 5px 0;
    }

    h3 {
        font-size: 16px;
        margin: 10px 0 8px 0;
    }

    input, textarea, select, button {
        padding: 10px;
        font-size: 14px;
    }

    label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
        font-size: 11px;
        word-break: break-word;
    }

    button {
        margin: 8px 0;
        padding: 10px;
    }

    .report-container {
        width: 100% !important;
        padding: 10px !important;
    }

    .progress-bar {
        height: 20px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        width: 22px;
        height: 3px;
        margin: 4px 0;
    }

    .navbar-logo a {
        font-size: 16px;
        padding: 8px 0;
    }

    .navbar-container {
        padding: 8px;
        flex-wrap: wrap;
    }

    .navbar-menu {
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 400px;
    }

    .navbar-menu li a {
        padding: 12px 15px;
        font-size: 12px;
        border-top: 1px solid #34495e;
    }
    .balance-card {
        flex: 1 1 100%;
        min-width: unset;
        max-width: 100%;
    }
}
