:root {
    /* Logo Farben */
    --tl-primary: #F2A900; /* Bernstein/Gelb */
    --tl-sidebar: #2C3E50; /* Dunkelgrau */
    --tl-sidebar-active: #1a252f;
    /* UI Farben */
    --tl-bg: #F4F7FA; /* Sehr helles Grau für Content */
    --tl-card-bg: #FFFFFF;
    --tl-text-main: #2C3E50;
    --tl-text-muted: #8898aa;
    /* Indikatoren */
    --tl-green: #2dce89;
    --tl-red: #f5365c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--tl-bg);
    color: var(--tl-text-main);
    overflow-x: hidden;
}

/* --- SIDEBAR DESIGN --- */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--tl-sidebar);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}

    #sidebar .sidebar-header {
        padding: 20px;
        background: var(--tl-sidebar-active);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #sidebar ul.components {
        padding: 20px 0;
    }

    #sidebar ul li a {
        padding: 15px 25px;
        font-size: 1.1em;
        display: block;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: 0.3s;
        border-left: 4px solid transparent;
    }

        #sidebar ul li a:hover {
            color: #fff;
            background: rgba(255,255,255,0.05);
        }

    #sidebar ul li.active > a {
        color: #fff;
        background: rgba(255,255,255,0.05);
        border-left: 4px solid var(--tl-primary);
    }

    #sidebar ul li a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

/* --- CONTENT DESIGN --- */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
}

.card-custom {
    background: var(--tl-card-bg);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15);
    margin-bottom: 30px;
    transition: transform 0.2s;
}

    .card-custom:hover {
        transform: translateY(-3px);
    }

/* Stat Cards */
.icon-shape {
    width: 48px;
    height: 48px;
    background-position: center;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.bg-gradient-primary {
    background: linear-gradient(87deg, var(--tl-primary) 0, #fbb140 100%);
}

.bg-gradient-info {
    background: linear-gradient(87deg, #11cdef 0, #1171ef 100%);
}

.bg-gradient-dark {
    background: linear-gradient(87deg, #3a4b60 0, #2C3E50 100%);
}

.text-success {
    color: var(--tl-green) !important;
}

.text-danger {
    color: var(--tl-red) !important;
}

/* Table Styling */
.table thead th {
    border-top: none;
    border-bottom: 1px solid #e9ecef;
    color: var(--tl-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}