body {
margin: 0;
font-family: Segoe UI, Arial, sans-serif;
background: #f4f6f8;
color: #333;
}

.header {
    background: #ff6200;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-ing {
    height: 60px;
}

.logo-hintergasse {
    height: 80px;
    transform: scale(3);
    transform-origin: right center;
}

.title {
    font-size: 28px;
    font-weight: bold;
}

.subtitle {
    font-size: 14px;
}

.navbar {
background: #202020;
padding: 12px 30px;
}

.navbar a {
color: white;
text-decoration: none;
margin-right: 25px;
font-weight: bold;
}

.navbar a:hover {
color: #ff6200;
}

.container {
max-width: 1400px;
margin: 25px auto;
padding: 0 20px;
}

.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 20px;
}

.card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 3px 10px rgba(0,0,0,.1);
}

.card h2 {
margin-top: 0;
}

.card form {
margin-top: 15px;
}

input[type=text] {
padding: 8px;
width: 80px;
}

button {
background: #ff6200;
color: white;
border: none;
padding: 10px 18px;
border-radius: 6px;
cursor: pointer;
}

button:hover {
background: #e35700;
}

.footer {
margin-top: 30px;
text-align: center;
color: #888;
font-size: 12px;
}

.category-table {
width: 100%;
border-collapse: collapse;
}

.category-table th {
background: #ff6200;
color: white;
text-align: left;
padding: 12px;
}

.category-table td {
padding: 12px;
border-bottom: 1px solid #ddd;
}

.category-table tr:hover {
background: #f8f8f8;
}

.action-link {
color: #0066cc;
text-decoration: none;
font-weight: bold;
}

.action-link:hover {
text-decoration: underline;
}

.delete-link {
color: #cc0000;
text-decoration: none;
font-weight: bold;
}

.delete-link:hover {
text-decoration: underline;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;

    background: #ff6200;
    color: white;

    border-radius: 20px;

    padding: 8px 14px;

    font-size: 14px;
    font-weight: bold;
}

.tag a {
    color: white;
    text-decoration: none;

    margin-left: 10px;

    font-size: 18px;
    font-weight: bold;
}

.tag a:hover {
    color: #202020;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}
.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th {
    background: #ff6200;
    color: white;
    padding: 10px;
    text-align: left;
    position: sticky;
    top: 0;
}

.transaction-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.transaction-table tr:hover {
    background: #f8f8f8;
}

.transaction-container {
    max-height: 500px;
    overflow-y: auto;
}
.transaction-container {
    max-height: 500px;
    overflow-y: auto;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th {
    background: #ff6200;
    color: white;
    padding: 10px;
    text-align: left;
    position: sticky;
    top: 0;
}

.transaction-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.transaction-table tr:hover {
    background: #f8f8f8;
}
.balance-label {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #666;
}

.balance-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff6200;
    margin-top: 0;
}
.log-viewer {

    background: #1e1e1e;
    color: #dcdcdc;

    padding: 15px;

    border-radius: 8px;

    overflow-x: auto;
    overflow-y: auto;

    max-height: 700px;

    font-family: Consolas, monospace;
    font-size: 13px;

    white-space: pre-wrap;
}
.balance-green {
    color: #2e7d32;
}

.balance-orange {
    color: #f57c00;
}

.balance-red {
    color: #c62828;
}
#modal-overlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(
        0,
        0,
        0,
        0.5
    );

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

#modal {

    background: white;

    padding: 30px;

    border-radius: 12px;

    box-shadow:
        0 0 20px rgba(
            0,
            0,
            0,
            0.3
        );

    min-width: 400px;

    text-align: center;

}
#modal p {

    font-size: 18px;

    line-height: 1.5;

    margin-bottom: 20px;
}

#modal h2 {

    color: #ff6200;

    margin-top: 0;
}

#modal button {

    margin-top: 20px;

    padding: 10px 25px;

    background: #ff6200;

    color: white;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;
}
#modal button:hover {

    opacity: 0.9;
}
.modal-message {

    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 20px;
}
.chart-card {

    grid-column: 1 / -1;

    min-height: 550px;
}
#balanceChart {

    width: 100% !important;
    height: 450px !important;
}