/* Dunkles, modernes Theme für die Finanz-Webapp */
body {
    background-color: #171A1F;
    color: #ECEFF4;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

h1, h2, h5 {
    color: #D8DEE9;
    margin-bottom: 0.5em;
}

.navbar {
    background: #22252A !important;
    box-shadow: 0 2px 8px rgba(20,20,30,0.2);
    border-bottom: 1px solid #292D36;
}
.navbar-nav .nav-link {
    color: #C1C9D6 !important;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .active>.nav-link {
    color: #8FBCBB !important;
}

.container, .container-fluid {
    padding: 1.2rem 0.8rem;
    max-width: 900px;
}

.card, .list-group-item, .bg-card {
    background: #23262B !important;
    border-radius: 10px;
    border: 1px solid #292D36 !important;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(30,30,40,0.1);
}

input, select, textarea, .form-control, .form-control-sm {
    background: #191B20 !important;
    color: #ECEFF4;
    border: 1px solid #444851 !important;
    border-radius: 7px !important;
    padding: 0.6em 1em !important;
    margin-bottom: 0.5em;
}
input:focus, select:focus, .form-control:focus {
    outline: none;
    border-color: #8FBCBB !important;
    box-shadow: 0 0 0 2px rgba(143,188,187,0.15);
}

.btn-primary, .btn-outline-primary {
    background: #8FBCBB !important;
    color: #22252A !important;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    padding: 0.5em 1.2em;
    transition: background 0.2s, color 0.2s;
}
.btn-primary:hover, .btn-outline-primary:hover {
    background: #5E81AC !important;
    color: #ECEFF4 !important;
}

form {
    background: #23262B;
    border-radius: 10px;
    border: 0px solid #292D36;
    padding: 0.5em 1.2em;
    box-shadow: 0 2px 8px rgba(30,30,40,0.1);
    margin-bottom: 1.5em;
}

.history-entry {
    border: 2px solid #8FBCBB;
    border-radius: 8px;
    background: #22252A;
    margin-bottom: 0.7em;
    padding: 1.0em 1.3em;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.history-entry:hover {
    background: #2D313A;
    border-color: #5E81AC;
    box-shadow: 0 2px 8px rgba(94,129,172,0.18);
}

::-webkit-scrollbar {
    width: 8px;
    background: #22252A;
}
::-webkit-scrollbar-thumb {
    background: #444851;
    border-radius: 6px;
}

/* Responsives Layout */
@media (max-width: 768px) {
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.1rem; }
    .container, .container-fluid { padding: 0.7rem 0.3rem; }
    nav .navbar-nav { font-size: 1rem; }
    .card, .list-group-item, .bg-card { margin-bottom: 0.5rem; }
    form { padding: 0.6em; }
    .history-entry { padding: 0.7em 0.7em; }
}

.modal-content {
    background: #23262B !important;
    color: #ECEFF4 !important;
    border-radius: 10px;
    border: 1px solid #292D36 !important;
    box-shadow: 0 2px 8px rgba(30,30,40,0.15);
}

.modal-header, .modal-footer {
    border-color: #292D36 !important;
    background: #191B20 !important;
}

.modal-title {
    color: #D8DEE9 !important;
}