/* =========================
   GLOBAL
   ========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top, #1b1f26, #0b0e13);
    color: #e6e6e6;
}

a {
    color: #4aa3ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   LAYOUT
   ========================= */
.layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    min-height: 100vh;
}

.sidebar {
    padding: 20px;
    background: rgba(0,0,0,0.35);
}

.main {
    padding: 30px;
}

/* =========================
   INDEX TABLE (NU SE ATINGE)
   ========================= */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

/* =========================
   DOWNLOAD PAGE
   ========================= */
.download-card {
    max-width: 900px;
    margin: 20px auto;
    background: rgba(18,22,28,0.9);
    padding: 20px;
    border-radius: 12px;
}

.download-title {
    text-align: center;
    font-size: 22px;
    margin: 0 0 15px;
}

.download-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* =========================
   DOWNLOAD BUTTONS – MICI (CA WARZONE)
   ========================= */
.download-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-download {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    color: #fff;
}

.btn-download i {
    font-size: 12px;
    margin-right: 4px;
}

.download-count {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

/* CULORI BUTOANE */
.btn-exe {
    background: #1e90ff;
}

.btn-rar {
    background: #6a5acd;
}

.btn-yandex {
    background: #00a86b;
}

/* =========================
   DOWNLOAD TEXT
   ========================= */
.download-text {
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   LEFT SIDEBAR – CATEGORII
   ========================= */
.leftcat-box {
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    overflow: hidden;
}

.leftcat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    margin: 6px;
}

.leftcat-list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.leftcat-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 14px;
    transition: background 0.15s ease;
}

.leftcat-list li a i {
    width: 18px;
    text-align: center;
    color: #7bb7ff;
}

.leftcat-list li a:hover {
    background: rgba(30,144,255,0.25);
}

/* =========================
   GSCLIENT SIDEBAR
   ========================= */
.gsclient-box {
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    overflow: hidden;
}

.gsclient-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.gsclient-title i {
    font-size: 16px;
}

.gsclient-title .arrow {
    margin-left: auto;
    transition: transform 0.25s ease;
}

.gsclient-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.gsclient-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 14px;
    transition: background 0.15s ease;
}

.gsclient-list li a i {
    width: 18px;
    text-align: center;
    color: #7bb7ff;
}

.gsclient-list li a:hover {
    background: rgba(30,144,255,0.25);
}

/* COLLAPSE */
.gsclient-collapsed .gsclient-list {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.gsclient-collapsed .gsclient-title .arrow {
    transform: rotate(-90deg);
}

/* =========================
   ACTIVE STATE (FINAL)
   ========================= */
.leftcat-list a.active,
.gsclient-list a.active {
    background: rgba(30,144,255,0.35);
    color: #fff;
    font-weight: 700;
}

.leftcat-list a.active i,
.gsclient-list a.active i {
    color: #fff;
}

/* =========================
   SIDEBAR DREAPTA – SCROLL
   ========================= */
.sidebar.right {
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 6px;
}

.sidebar.right::-webkit-scrollbar {
    width: 6px;
}

.sidebar.right::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.sidebar.right::-webkit-scrollbar-thumb {
    background: rgba(100,160,255,0.6);
    border-radius: 6px;
}

.sidebar.right::-webkit-scrollbar-thumb:hover {
    background: rgba(100,160,255,0.9);
}


/* =========================
   RESPONSIVE – MOBILE
   ========================= */
@media (max-width: 900px) {

    /* layout devine 1 coloana */
    .layout {
        grid-template-columns: 1fr;
    }

    /* sidebars devin block */
    .sidebar {
        width: 100%;
        padding: 15px;
    }

    /* ordinea elementelor */
    .sidebar.left {
        order: 1;
    }

    .main {
        order: 2;
        padding: 20px;
    }

    .sidebar.right {
        order: 3;
        max-height: none;
        overflow: visible;
    }

    /* titluri mai mici */
    h1 {
        font-size: 20px;
        text-align: center;
    }

    .download-title {
        font-size: 20px;
    }

    /* butoane full width */
    .download-buttons {
        grid-template-columns: 1fr;
    }

    .btn-download {
        font-size: 13px;
        padding: 10px;
    }

    /* imagine download */
    .download-image img {
        margin-bottom: 12px;
    }

    /* tabel servere scroll */
    .server-table,
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}











































