body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    background-color: #191A1B;
}

.wrapper {
    display: flex;
    width: 100%;
}

/* =======================
   SIDEBAR
======================= */
#sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #0F0F0F;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition: width 0.3s ease;
}

/* eingeklappt */
#sidebar.collapsed {
    width: 80px;
}

/* =======================
   TOP AREA
======================= */
.sidebar-top {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =======================
   HEADER
======================= */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    padding-left: 20px;
    background: #0F0F0F;
}

/* LOGO */
.logo {
    color: #DEDEDE;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Logo ausblenden */
#sidebar.collapsed .logo {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
}

/* =======================
   TOGGLE BUTTON
======================= */
#toggle-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;

    border-radius: 50%;
    border: none;
    background: transparent;
    color: #DEDEDE;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover */
#toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Klick */
#toggle-btn:active {
    transform: scale(0.9);
}

/* Icon Rotation */
#toggle-btn i {
    transition: transform 0.4s ease;
}

#sidebar.collapsed #toggle-btn i {
    transform: rotate(180deg);
}

/* =======================
   NAVIGATION
======================= */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* LINKS */
.nav-links li a {
    height: 50px;
    box-sizing: border-box;

    padding: 0 20px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #DEDEDE;
    text-decoration: none;
    border-bottom: 1px solid #0F0F0F;

    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.nav-links li a:hover {
    background: #282828;
    color: #fff;
}

/* ICONS */
.nav-links i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;

    transition: transform 0.35s ease;
}

/* TEXT */
.nav-links span {
    white-space: nowrap;

    transition: opacity 0.25s ease, transform 0.3s ease;
}

/* =======================
   COLLAPSED STATE
======================= */

/* kein Snap */
#sidebar.collapsed .nav-links li a {
    padding: 0 20px;
}

/* Icons smooth */
#sidebar.collapsed .nav-links i {
    transform: translateX(10px);
}

/* Text verschwindet */
#sidebar.collapsed span {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
}

/* Logo weg */
#sidebar.collapsed .logo {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
}

/* =======================
   BOTTOM SECTION (ACCOUNT + SETTINGS)
======================= */
.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #0F0F0F;
    padding-bottom: 10px;
}

/* =======================
   CONTENT
======================= */
#content {
    width: 100%;
    padding: 40px;
}

p,
h3,
h2 {
    color: #DEDEDE;
}

body.preload * {
    transition: none !important;
}