/* --- MODERNÍ REDESIGN PRO PŘEHLED TRANSAKCÍ --- */

/* --- FILTRAČNÍ KARTA --- */
.filter-card {
    background-color: #2a2a2e;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #3a3a3c;
    margin-bottom: 30px;
}
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: center;
}
.filter-form input,
.filter-form select {
    padding: 12px;
    border: 1px solid #555;
    background-color: #3a3a3c;
    color: #f5f5f5;
    border-radius: 6px;
    font-size: 1em;
}
.filter-form .actions {
    display: flex;
    gap: 10px;
}
.filter-form button,
.filter-form a {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    border: none;
    flex-grow: 1;
}
.btn-primary { background-color: #4a90e2; color: #fff; transition: background-color 0.2s; }
.btn-primary:hover { background-color: #357ABD; }
.btn-secondary { background-color: #555; color: #fff; transition: background-color 0.2s; }
.btn-secondary:hover { background-color: #777; }

/* --- SOUHRNNÝ PANEL NAD TABULKOU --- */
.summary-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.summary-item {
    background-color: #2a2a2e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #3a3a3c;
}
.summary-item .label {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 8px;
}
.summary-item .value {
    font-size: 1.8em;
    font-weight: bold;
}
.prijem { color: #2ecc71; }
.vydaj { color: #e74c3c; }
.zisk { color: #4a90e2; }

/* --- NOVÝ VZHLED TABULKY TRANSAKCÍ --- */
.transactions-card {
    background-color: #2a2a2e;
    border-radius: 12px;
    border: 1px solid #3a3a3c;
    overflow: hidden; /* Důležité pro zaoblené rohy */
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    padding: 15px;
    text-align: left;
    background-color: #333336;
    font-weight: 700;
    color: #a0a0a0;
    font-size: 0.9em;
    text-transform: uppercase;
}
td {
    padding: 15px;
    border-top: 1px solid #3a3a3c;
}
tbody tr:hover {
    background-color: #333336;
}
.transaction-row .indicator {
    width: 4px;
    padding: 0;
}
.indicator.prijem { background-color: #2ecc71; }
.indicator.vydaj { background-color: #e74c3c; }

.description-cell .main {
    font-weight: 600;
    color: #f5f5f5;
    display: block;
}
.description-cell .sub {
    font-size: 0.85em;
    color: #a0a0a0;
}
.amount-cell {
    font-weight: bold;
    font-size: 1.1em;
    text-align: right;
    white-space: nowrap;
}
.no-results {
    text-align: center;
    padding: 50px;
    color: #a0a0a0;
}
.actions-cell {
    text-align: right;
}
.btn-icon {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    transition: color 0.2s;
}
.btn-icon.edit:hover { color: #3498db; }
.btn-icon.delete:hover { color: #e74c3c; }


/* --- RESPONZIVNÍ DESIGN --- */
@media (max-width: 1200px) {
    .filter-form {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
    .summary-panel {
        grid-template-columns: 1fr;
    }
    /* Skrytí méně důležitých sloupců na mobilu */
    table thead .optional-col,
    table tbody .optional-col {
        display: none;
    }
}
@media (max-width: 500px) {
    th, td { padding: 12px 8px; font-size: 0.9em; }
    .amount-cell { font-size: 1em; }
}