/* --- PŮVODNÍ KÓD --- */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.stat-box, .chart-box, .recent-box { background-color: #1c1c1e; padding: 20px; border-radius: 8px; border: 1px solid #3a3a3c; }
.stat-item { display: flex; justify-content: space-between; font-size: 1.1em; padding: 10px 0; }
.stat-item + .stat-item { border-top: 1px solid #3a3a3c; }
.stat-item span { color: #a0a0a0; }
.chart { display: flex; justify-content: space-around; align-items: flex-end; height: 200px; padding: 20px 0; border-top: 1px solid #3a3a3c; }
.chart-bar-group { display: flex; gap: 10px; align-items: flex-end; height: 100%; text-align: center; position: relative; }
.chart-bar-group .bar { width: 40px; border-radius: 4px 4px 0 0; transition: height 0.5s ease-out; margin: 0 5px; }
.chart-bar-group p { position: absolute; transform: translateY(25px); width: 100%; left: 0; font-size: 0.9em; color: #a0a0a0; }
.recent-box table { width: 100%; border-collapse: collapse; }
.recent-box td { padding: 10px 0; border-bottom: 1px solid #eee; }
.recent-box tr:last-child td { border-bottom: none; }
.prijem { color: #2ecc71; }
.vydaj { color: #e74c3c; }
.bar.prijem { background-color: #2ecc71; }
.bar.vydaj { background-color: #e74c3c; }
.stat-item strong, .recent-box td.vydaj { font-weight: 700; }
.add-transaction-box { background-color: #1c1c1e; padding: 20px; border-radius: 8px; border: 1px solid #3a3a3c; grid-column: 1 / -1; }
.quick-add-form { display: flex; flex-wrap: wrap; gap: 15px; }
.quick-add-form input, .quick-add-form select, .quick-add-form button { padding: 10px; border: 1px solid #555; background-color: #3a3a3c; color: #f5f5f5; border-radius: 4px; font-size: 1em; }
.quick-add-form input { flex-grow: 1; }
.quick-add-form input[name="amount"] { flex-basis: 120px; }
.quick-add-form select[name="category"] { flex-basis: 150px; }
.quick-add-form select[name="account"] { flex-basis: 180px; }
.quick-add-form input[name="description"] { flex-basis: 250px; }
.quick-add-form select { flex-basis: 100px; }
.quick-add-form button { background-color: #4a90e2; border-color: #4a90e2; cursor: pointer; font-weight: bold; transition: background-color 0.3s; flex-basis: 100px; }
.quick-add-form button:hover { background-color: #357ABD; }
.page-header-dashboard { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filter-form-dashboard select { background-color: #3a3a3c; color: #f5f5f5; border: 1px solid #555; border-radius: 4px; padding: 10px; font-size: 1em; }
.bar-wrapper { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar-value { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 5px; font-size: 0.8em; font-weight: bold; white-space: nowrap; }

/* --- NOVÁ SEKCE PRO MOBILNÍ TELEFONY --- */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Všechny boxy pod sebou */
    }
    .quick-add-form {
        flex-direction: column; /* Všechny prvky formuláře pod sebou */
    }
    .page-header-dashboard {
        flex-direction: column; /* Nadpis a filtr pod sebe */
        gap: 15px;
        align-items: stretch;
    }
    .chart {
        padding: 20px 0 0 0;
    }
    .chart-bar-group .bar {
        width: 30px;
    }
    .bar-value {
        font-size: 0.7em;
    }
}