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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #35424a;
    color: white;
    padding: 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav {
    float: right;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-left: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
}

main {
    padding: 2rem;
    min-height: calc(100vh - 130px);
}

footer {
    background-color: #35424a;
    color: white;
    text-align: center;
    padding: 1rem;
}

.auth-container {
    width: 400px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Add these new styles */
.btn {
    display: inline-block;
    background-color: #35424a;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 20px;
}

.btn:hover {
    background-color: #2c3840;
}

.btn-secondary {
    background-color: #777;
}

.btn-secondary:hover {
    background-color: #666;
}

.btn-danger {
    background-color: #d9534f;
}

.btn-danger:hover {
    background-color: #c9302c;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8em;
    margin-right: 5px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f4f4f4;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.error {
    color: red;
    margin-bottom: 15px;
}

.success {
    color: green;
    margin-bottom: 15px;
}

/* Add these styles for reports */
.report-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.report-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    width: 300px;
}

.report-card h3 {
    margin-top: 0;
    color: #333;
}

.report-card p {
    margin-bottom: 15px;
    color: #666;
}

@media print {
    header, footer, .actions, .year-selector {
        display: none;
    }
    
    body {
        padding: 20px;
    }
    
    .report-container {
        page-break-after: always;
    }
}

/* Add these styles for transaction amounts if not already added */
.income-amount {
    color: green;
    font-weight: bold;
}

.expense-amount {
    color: red;
    font-weight: bold;
}

/* Hamburger menu styles for ALL devices */
.hamburger-menu, .hamburger {
    display: block !important;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-menu span, .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Navigation styles for all devices */
header nav {
    position: relative;
}

header nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #35424a;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 10px;
    z-index: 1000;
}

header nav ul.show {
    display: block;
}

header nav ul li {
    display: block;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header nav ul li:last-child {
    border-bottom: none;
}

header nav ul li a {
    display: block;
    padding: 5px 15px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ddd;
    background-color: rgba(255,255,255,0.1);
}

/* Hamburger menu animation */
.hamburger.active span:nth-child(1), .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2), .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3), .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Remove old mobile-specific styles */
@media screen and (max-width: 768px) {
    header {
        padding: 1rem;
    }
}