:root { 
    --primary: #3498db; --success: #2ecc71; --danger: #e74c3c; 
    --dark: #2c3e50; --gray: #95a5a6; --bg: #f4f7f6; 
}

body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--bg); margin: 0; padding: 20px; }

.app-container { max-width: 1000px; margin: auto; background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.login-screen { max-width: 350px; margin: 100px auto; text-align: center; background: white; padding: 40px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.login-screen input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }
.login-btn { background: var(--primary); color: white; border: none; padding: 12px; width: 100%; border-radius: 8px; cursor: pointer; font-weight: bold; }

.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f0f0; margin-bottom: 25px; padding-bottom: 15px; }

.filter-section { background: #f8f9fa; padding: 20px; border-radius: 12px; margin-bottom: 35px; display: flex; gap: 30px; flex-wrap: wrap; border: 1px solid #eee; }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-section select { padding: 10px; border-radius: 8px; border: 1px solid #ddd; min-width: 120px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.stat-card { padding: 20px; border-radius: 15px; color: white; text-align: center; }
.bg-income { background: var(--success); }
.bg-expense { background: var(--danger); }
.bg-balance { background: var(--primary); }

.form-group { background: #f8f9fa; padding: 25px; border-radius: 12px; border: 2px solid #f0f0f0; margin-bottom: 30px; }
.input-row { display: grid; grid-template-columns: 5fr 1.5fr 1.8fr 1fr; gap: 15px; align-items: center; }
input[type="text"], input[type="number"], input[type="date"] { padding: 12px; border: 1px solid #ddd; border-radius: 8px; width: 100%; box-sizing: border-box; }
.submit-btn { background: var(--dark); color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.user-badge { background: #9b59b6; color: white; padding: 3px 8px; border-radius: 10px; font-size: 11px; }
.del-btn { color: var(--danger); border: none; background: none; font-size: 18px; cursor: pointer; }

.logout-btn { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 500; }

.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); display:none; justify-content:center; align-items:center; z-index: 1000; }
.modal-content { background:white; padding:30px; border-radius:15px; width:300px; text-align:center; }
.modal-buttons { display: flex; gap: 10px; margin-top: 20px; }
.modal-buttons button { flex: 1; padding: 10px; border-radius: 8px; cursor: pointer; border: none; }
.cancel-btn { background: #eee; }
.confirm-btn { background: var(--danger); color: white; }