/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation styles */
.main-nav {
    background-color: #1D04A6;
    color: #fff;
    padding: 0.2rem 0;
    position: relative;
    min-height: 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.nav-sections {
    display: flex;
    gap: 1rem;
}

.nav-section ul {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-section h3 {
    display: none;
}

.nav-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1.2;
}

.nav-section ul li a:hover {
    background: #2c3e50;
}

/* User section styles */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.username-dropdown {
    position: relative;
    display: inline-block;
}

.username {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.username:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    margin-top: 5px;
}

.user-dropdown-menu.open {
    display: block;
}

.user-dropdown-menu .logout-btn {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    display: block;
    transition: background 0.2s;
    border-radius: 4px;
    margin: 2px;
}

.user-dropdown-menu .dropdown-item {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    display: block;
    transition: background 0.2s;
    border-radius: 4px;
    margin: 2px;
    border-bottom: 1px solid #eee;
}

.user-dropdown-menu .logout-btn:hover,
.user-dropdown-menu .dropdown-item:hover {
    background: #f5f5f5;
}

@media (max-width: 700px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .nav-sections {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1D04A6;
        z-index: 1000;
    }
    .nav-sections.open {
        display: flex;
    }
    .nav-section ul {
        flex-direction: column;
        gap: 0;
    }
    .menu-toggle {
        display: block;
    }
    .user-section {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    .user-dropdown-menu {
        right: -10px;
    }
}

/* Content area */
.content {
    flex: 1;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #1D04A6;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Form styles */
.filters {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="date"],
input[type="text"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}

/* Table styles */
.expenses-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.expenses-table th,
.expenses-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.expenses-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.expenses-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Total row styles */
.total-label {
    text-align: right;
    font-weight: bold;
}

.total-amount {
    font-weight: bold;
    color: #e74c3c;
} 