* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

:root {
    --primary-color: #5865f2;
    --secondary-color: #4e5d94;
    --background-color: #121212;
    --sidebar-bg: #1e1f22;
    --text-color: #dbdee1;
    --text-light: #b5bac1;
    --border-color: #2a2a2a;
    --card-bg: #1e1f22;
    --hover-bg: #2b2d31;
    --active-bg: #383a40;
    --code-bg: #0d0d0d;
    --code-border: #333;
    --footer-bg: #0a0a0a;
}

body {
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    width: 280px;
    background: #2b2d31;
    color: #dbdee1;
    padding: 16px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    padding: 1rem 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    animation: fadeIn 0.5s ease;
    text-shadow: 0 0 10px rgba(110, 142, 251, 0.3);
}

.sidebar h2::before,
.sidebar h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 30%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-color),
        transparent
    );
    animation: shine 3s infinite;
}

.sidebar h2::before {
    left: 0;
}

.sidebar h2::after {
    right: 0;
}

.sidebar h2 i.fa-robot {
    margin-right: 12px;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(110, 142, 251, 0.5));
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes shine {
    0% {
        opacity: 0.3;
        width: 30%;
    }
    50% {
        opacity: 1;
        width: 40%;
    }
    100% {
        opacity: 0.3;
        width: 30%;
    }
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 0.5rem 0;
    border-bottom: 1px solid #2a2a2a;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.sidebar ul li a:hover {
    background: rgba(110, 142, 251, 0.15);
    transform: translateX(5px);
}

.sidebar ul li a.active {
    background: rgba(110, 142, 251, 0.25);
    color: #6e8efb;
    font-weight: bold;
    border-left: 3px solid #6e8efb;
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #6e8efb;
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    flex: 1;
    max-width: 100%;
    width: calc(100% - 280px);
}

.section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    display: none;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    color: #6e8efb;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

pre {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    color: #e0e0e0;
    font-family: "Courier New", monospace;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--footer-bg);
    color: #e0e0e0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        width: 280px;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
}

.command-category {
    margin-bottom: 2.5rem;
    border-left: 3px solid #6e8efb;
    padding-left: 1rem;
}

.command-category h3 {
    color: #6e8efb;
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.command {
    background: var(--code-bg);
    border-radius: 4px;
    padding: 1.2rem;
    margin: 0.8rem 0;
    border: 1px solid var(--code-border);
}

.command-name {
    color: #6e8efb;
    font-weight: 600;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    margin-bottom: 0.3rem;
}

.command-usage {
    color: #e0e0e0;
    font-family: "Courier New", monospace;
    margin: 0.5rem 0;
    background: #000;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    font-size: clamp(0.85rem, 0.9vw, 1rem);
}

.command-desc {
    margin: 0.5rem 0;
    line-height: 1.5;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.command-permissions {
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    color: #aaa;
    margin-top: 0.5rem;
    font-style: italic;
}

@media (min-width: 1600px) {
    .main-content {
        padding: 3rem 4rem;
    }

    .section {
        padding: 3rem;
    }

    .command {
        padding: 1.5rem;
    }
}

@media (min-width: 2000px) {
    .sidebar {
        width: 320px;
        min-width: 320px;
    }

    .main-content {
        margin-left: 320px;
        width: calc(100% - 320px);
        max-width: 1400px;
    }
}

.sidebar {
    width: 280px;
    background: #121212;
    color: #e0e0e0;
    padding: 1.5rem 1rem;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
}

.category {
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #1e1f22;
}

.category-header {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.category-header i:first-child {
    color: #5865f2;
}

.category-header i.fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.category.active .category-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.category-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
}

.category.active .category-content {
    grid-template-rows: 1fr;
}

.command-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 36px;
    color: #b5bac1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.command-link:hover {
    background: rgba(79, 84, 92, 0.4);
}

.command-link.active {
    color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 8px 8px 8px 0;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    color: white !important; /* Dodane !important dla pewności */
}

.btn i {
    margin-right: 10px;
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #5865f2 0%, #3a45b5 100%) !important;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4752c4 0%, #6734c4 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #4e5d94 0%, #2d3759 100%) !important;
    box-shadow: 0 4px 14px rgba(78, 93, 148, 0.3) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a486b 0%, #28344d 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 93, 148, 0.4) !important;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;
    gap: 12px;
}

.note {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.note i {
    color: var(--primary-color);
    font-size: 16px;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background: #1e1f22;
    padding: 16px 12px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
    z-index: 100;
    top: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header i {
    color: #5865f2;
    font-size: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.category {
    margin-bottom: 0.8rem;
    border-radius: 8px;
    overflow: hidden;
    background: #2b2d31 !important; /* Ciemne tło */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.category-title {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #dbdee1 !important; /* Jasny tekst */
    background: #2b2d31 !important; /* Ciemne tło */
}

.category-title:hover {
    background: #383a40 !important; /* Ciemniejszy odcień na hover */
}

.category-title i:first-child {
    margin-right: 10px;
    color: #5865f2 !important; /* Kolor ikony */
}

.category-title i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.category.active .category-title i.fa-chevron-down {
    transform: rotate(180deg);
}

.subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #2b2d31 !important; /* Ciemne tło */
}

.category.active .subcategories {
    max-height: 500px;
}

.subcategory-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    color: #b5bac1 !important; /* Jasny tekst */
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    gap: 10px;
    background: #2b2d31 !important; /* Ciemne tło */
}

.subcategory-link:hover {
    background: #383a40 !important; /* Ciemniejszy odcień na hover */
    color: #5865f2 !important; /* Niebieski tekst na hover */
}

.subcategory-link.active {
    color: #5865f2 !important; /* Niebieski tekst dla aktywnego linku */
    background: rgba(88, 101, 242, 0.1) !important; /* Lekkie niebieskie tło */
    border-left: 2px solid #5865f2 !important; /* Niebieska ramka */
}

.subcategory-link i {
    font-size: 0.9rem;
    color: #b5bac1 !important; /* Jasny kolor ikony */
}

.subcategory-link.active i {
    color: #5865f2 !important; /* Niebieski kolor ikony dla aktywnego linku */
}

.category {
    will-change: transform, opacity;
}

.category-title {
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.category-title:hover {
    transform: translateX(3px);
}

.subcategories {
    will-change: transform, opacity, max-height;
    transition:
        max-height 0.35s cubic-bezier(0.2, 0.7, 0.4, 1),
        opacity 0.25s ease-out,
        transform 0.3s cubic-bezier(0.2, 0.7, 0.4, 1);
    opacity: 0;
    max-height: 0;
    transform: scaleY(0.96);
    transform-origin: top;
    display: none;
}

.category.active .subcategories {
    display: block;
    opacity: 1;
    max-height: 1000px;
    transform: scaleY(1);
}

.category:not(.active) .subcategories {
    transition:
        max-height 0.25s cubic-bezier(0.4, 0, 1, 1),
        opacity 0.15s ease-out,
        transform 0.2s ease-out;
    transform: scaleY(0.9);
}

.subcategory-link {
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease;
    will-change: transform;
}

.subcategory-link:hover {
    transform: translateX(5px);
}

.subcategory-link.active {
    animation: highlight-fade 1.5s ease;
}

@keyframes highlight-fade {
    0% {
        background-color: rgba(88, 101, 242, 0.2);
    }
    100% {
        background-color: rgba(88, 101, 242, 0.1);
    }
}

.sidebar {
    width: 320px;
    min-width: 320px;
    background: #1e1f22;
    padding: 20px 15px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
}

.category-header {
    padding: 14px 20px;
}

.command-item {
    padding: 10px 20px 10px 50px;
}

.category-icon {
    width: 28px;
    height: 28px;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    background: #1e1f22;
    padding: 16px 12px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
}

.category-header {
    padding: 12px 16px;
}

.command-item {
    padding: 8px 16px 8px 44px;
    font-size: 13px;
}

.category-icon {
    width: 24px;
    height: 24px;
}

.category-icon i {
    font-size: 14px;
}

.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.right {
    left: auto;
    right: 15px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar.active + .mobile-menu-toggle i {
        display: none;
    }

    .sidebar.active + .mobile-menu-toggle::after {
        content: "×";
        font-size: 24px;
        line-height: 1;
    }

    .sidebar {
        transform: translateX(100%);
        left: auto;
        right: 0;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar::before {
        left: 15px;
        right: auto;
    }
}
.floating-ball {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scrolling-down .floating-ball {
    transform: translateY(5px) rotate(10deg);
    opacity: 0.9;
}

.scrolling-up .floating-ball {
    transform: translateY(-5px) rotate(-10deg);
    opacity: 0.9;
}

.floating-ball:hover {
    transform: scale(1.1) !important;
    background: #4752c4 !important;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3a45b5;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.home-button {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a45b5 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
}

.home-button:hover {
    background: linear-gradient(135deg, #4752c4 0%, #3a45b5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.3);
}

.home-button:active {
    transform: translateY(0);
}

.home-button i {
    margin-right: 10px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .home-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    .home-button i {
        font-size: 16px;
    }
}
