:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --income: #2ecc71;
    --expense: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--dark);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

.dashboard {
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

.positive {
    color: var(--income);
}

.negative {
    color: var(--expense);
}

.summary {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.income-amount {
    color: var(--income);
    font-weight: bold;
    font-size: 1.3rem;
}

.expense-amount {
    color: var(--expense);
    font-weight: bold;
    font-size: 1.3rem;
}

.transaction-form {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input, select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d1145a;
}

.transactions-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.transaction-item:hover {
    background: #f9f9f9;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.income-icon {
    background: var(--income);
}

.expense-icon {
    background: var(--expense);
}

.transaction-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.transaction-info p {
    color: #666;
    font-size: 0.9rem;
}

.transaction-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.income-amount {
    color: var(--income);
}

.expense-amount {
    color: var(--expense);
}

.transaction-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    transition: color 0.3s;
    padding: 5px;
    border-radius: 5px;
}

.btn-icon:hover {
    color: var(--danger);
    background: #f8f9fa;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-group label {
    margin-bottom: 0;
    white-space: nowrap;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}