body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
}

a {
    text-decoration: none;
    color: #0077cc;
}

/* Buttons */
.button {
    background: #22c55e;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}


.button:hover {
    background: #16a34a;
}

.button + .button {
    margin-left: 8px;
}

.button.primary {
    background: #22c55e;
}

.button.primary:hover {
    background: #16a34a;
}

.progress {
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    margin-top: 8px;
}

.progress-bar {
    background: #4caf50;
    height: 100%;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    border: none;
    cursor: pointer;
}

.header {
    background: #1f2937;
    color: white;
    padding: 15px 0;
}

.header-content {
    width: 800px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    color: white;
    margin-left: 15px;
    font-weight: bold;
}

.nav a:hover {
    text-decoration: underline;
}

.actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;   /* WICHTIG */
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #0b1220;
    padding: 20px;
    border-right: 1px solid #1f2937;
    flex-shrink: 0;

    min-height: 100vh;   /* statt height */
}

.sidebar h2 {
    color: #22c55e;
}

.sidebar a {
    display: block;
    color: #9ca3af;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background: #1f2937;
    color: white;
}

.sidebar a.active {
    background: #22c55e;
    color: white;
}

/* Content */
.content {
    flex: 1;
    padding: 30px 40px;   /* vorher 30px */
    box-sizing: border-box;
    padding-bottom: 90px;
}

.content-inner {
    max-width: 100%;
}

/* Cards */
.card {
    background: #1f2937;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}


.card h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    overflow:hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.topbar-left h2 {
    margin: 0;
}

.subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-right form {
    margin: 0;
}

.topbar-right form .search {
    width: 260px;
    min-width: 260px;
}

.topbar-right .search {
    width: 260px !important;
    min-width: 260px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #111827;
    color: white;
    box-sizing: border-box;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.stat-card {
    background: #111827;
    padding: 12px 8px;
    border-radius: 12px;
    flex: 1;
    border: 1px solid #273244;
    text-align: center;
    min-height: 90px;
    transition:.2s;
}

.stat-card:hover{
    transform:translateY(-2px);
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 120px;
}

thead{
    background:#1f2937;
}

thead th{
    color:#d1d5db;
    font-weight:600;
    border-bottom:1px solid #273244;
}

tbody td{
    color:#e5e7eb;
    border-bottom:1px solid #273244;
}

tbody tr:hover{
    background:#1b2434;
}

th,
td{
    text-align:left;
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
}

.mobile-logo {
    display: none;
}

.mobile-logo img {
    width: 90px;
}

.mobile-nav a.active {
    color: #22c55e;
    font-weight: bold;
}

.mobile-nav a.active span {
    color: #22c55e;
}

/* ==========================================
   LOGIN
========================================== */

.login-body {
    background: #0f172a;
}

.login-container {
    min-height: 100vh;

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

    padding: 20px;
}

.login-card {
    background: #111827;

    width: 100%;
    max-width: 400px;

    padding: 35px;
    border-radius: 20px;

    border: 1px solid #1f2937;
}

.login-logo {
    width: 140px;
    display: block;
    margin: 0 auto 20px;
}

.login-card h1 {
    color: white;
    margin-bottom: 5px;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 30px;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-card input {
    background: #1f2937;
    border: 1px solid #273244;
    color: white;

    padding: 12px;
    border-radius: 10px;
}

.login-button {
    width: 100%;
    margin-top: 10px;
}

.login-error {
    margin-top: 15px;
    color: #f87171;
    text-align: center;
}

.form-container {
    display: flex;
    justify-content: center;
}

.form-card {
    background: #111827;
    width: 100%;
    max-width: 700px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #1f2937;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #273244;
    background: #1f2937;
    color: white;
    box-sizing: border-box;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.form-card h2 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
}

.search-info {
    background: #1f2937;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #273244;
}

.search {
    display: block !important;

    width: 260px !important;
    min-width: 260px !important;

    background: #111827 !important;
    color: white !important;

    border: 1px solid #273244 !important;
    border-radius: 8px !important;

    padding: 10px !important;
}

.sidebar-version {
    margin-top: auto;
    padding-top: 20px;

    border-top: 1px solid #273244;

    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 12px;
    margin-top: 8px;
    margin-right: 6px;

    border-radius: 9999px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    color: #fff;
}

input::placeholder{
    color:#6b7280;
    opacity:1;
}

.stat-card h3 {
    font-size: .95rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stat-card p {
    font-size:2rem;
    font-weight:700;
}

/*MOBILE*/

@media (max-width: 800px) {

    .user {
    display: none;
}

    .app {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 20px 20px 120px 20px;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: red;
}

.stat-card {
    min-width: 0;
}

.stat-card h3 {
    text-transform: none;
}

.topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.topbar-right form {
    width: 100%;
}

.topbar-right form .search {
    width: 100% !important;
    min-width: 0 !important;
}

.topbar-right form {
    width: 100%;
}

.search {
    width: 100% !important;
    min-width: 0 !important;
}

    .progress {
        height: 12px;
    }

    .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 70px;

    background: #111827;
    border-top: 1px solid #1f2937;

    display: flex;
    justify-content: space-around;
    align-items: center;

    z-index: 1000;
    }

    .mobile-nav a {
        color: #9ca3af;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
        gap: 4px;
    }

    .mobile-nav a:hover {
        color: white;
    }

    .mobile-logo {
     display: flex;
     justify-content: center;
     margin-bottom: 10px;
    }

    .search {
     display: none;
    }

    .topbar .button {
     display: none;
    }

    .topbar-right {
     flex-direction: row;
     justify-content: flex-end;
    }

    .user {
     color: #e5e7eb;
     font-size: 14px;
    }


    .login-container {
        align-items: flex-start;
        padding-top: 60px;
    }

    .mobile-add {
     position: absolute;

     top: -25px;
     left: 50%;

     transform: translateX(-50%);

     background: #22c55e;
     color: white !important;

     width: 60px;
     height: 60px;

     border-radius: 50%;

     display: flex !important;
     justify-content: center;
     align-items: center;

     font-size: 36px;
     font-weight: bold;

     box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .form-card {
        padding: 18px;
    }

    form {
     gap: 12px;
    }

    input,
    select {
        font-size: 16px;
    }
    .header {
     display: none;
    }

}

/* ==========================================
   ANALYTICS DASHBOARD
========================================== */

.analytics-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
}

.analytics-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-bottom:20px;
}

.analytics-card{
    background:#111827;
    border:1px solid #273244;
    border-radius:12px;
    padding:20px;
    transition:.2s;
}

.analytics-card:hover{
    transform:translateY(-2px);
    border-color:#22c55e;
}

.analytics-card h3{
    margin:0;
    font-size:14px;
    color:#9ca3af;
}

.analytics-card p{
    margin:12px 0 0;
    font-size:30px;
    font-weight:bold;
    color:#fff;
}

.table-card{
    background:#111827;
    border:1px solid #273244;
    border-radius:20px;
    padding:24px;
}

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

.table-card th{
    color:#9ca3af;
    text-align:left;
    padding:12px;
    border-bottom:1px solid #273244;
}

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

.table-card tbody tr:hover{
    background:#2b3647;
}

table{
    width:100%;
}

.version{
    margin-top:20px;
    text-align:center;
    color:#6b7280;
    font-size:12px;
}

th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3){
    width:120px;
}
