* {
    --bgColor1: #070707;
    --bgColor2: #000000;
    --txtColor: #ffffff;
    --txtColorDrk: #919191;
    --txtColorZoom: #cb1313;
    --txtColorZoom2: #c90d0d;
    --txtColorTransparent: rgba(203,19,19,0.18); /* was missing, used by team panels */
    --sb-accent: #cb1313;       /* new menu accent — matches your red */
    --sb-accent-dim: rgba(203,19,19,0.13);
}

::selection {
    background: var(--txtColorZoom);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    background-color: var(--txtColor);
    width: 10px;
    border-radius: 8px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(.5, var(--txtColorZoom)), color-stop(1, var(--txtColorZoom)));
    border-radius: 10px;
}

html,
body {
    min-height: 100vh;
    width: 100vw;
    background: var(--bgColor2, #0d0d0d);
    font-family: 'Open Sans', sans-serif;
    color: var(--txtColor);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.sidebar {
    width: 200px;
    min-width: 70px;
    background: var(--bgColor1, #0d0d0d);
    color: var(--txtColor, #fff);
    height: 100%;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    z-index: 300;
}

.sidebar.collapsed {
    width: 70px;
    height: 100%;
    position: fixed;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 24px 16px 16px 16px;
    background: var(--bgColor1, #121212);
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 22px;
    border: 2px solid var(--txtColorZoom, #c90d0d);
    background: #fff;
}

.sidebar-username {
    font-size: 1.1em;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-username,
.sidebar.collapsed .sidebar-link-text {
    opacity: 0;
    pointer-events: none;
    width: 0;
    display: none;
}

.sidebar .sidebar-link-text {
    margin-left: 18px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

#sidebarToggle {
    border: none;
    color: var(--txtColor, #fff);
    font-size: 1.25em;
    margin-left: auto;
    cursor: pointer;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
}

.sidebar-list li {
    width: 100%;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--txtColor, #fff);
    text-decoration: none;
    font-size: 1.08em;
    transition: background 0.15s, color 0.2s;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background: var(--txtColorZoom, #c90d0d);
    color: #fff;
}

.sidebar-footer {
    padding: 12px 16px 20px 16px;
    border-top: 1px solid var(--txtColorDrk, #333);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    color: var(--txtColorDrk, #ccc);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-logout i {
    font-size: 1.1em;
}

.sidebar-logout:hover {
    color: var(--txtColorZoom, #c90d0d);
}

.dashboard_main,
.dashboard_page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    width: calc(100% - 240px);
    min-height: 100vh;
    box-sizing: border-box;
    transition: margin-left 0.22s cubic-bezier(.4,0,.2,1),
                width       0.22s cubic-bezier(.4,0,.2,1);
}

@media (max-width: 1000px) {

    .dashboard_main,
    .dashboard_page {
        margin-left: 0;
        width: 100vw;
        padding-top: 24px;
    }

    .profile_panel,
    .users_panel {
        padding: 18px 6vw;
    }
}

.sidebar.collapsed ~ .dashboard_main,
.sidebar.collapsed ~ .dashboard_page {
    margin-left: 64px;           /* matches --sb-width-col: 64px */
    width: calc(100% - 64px);
}

@media (max-width: 768px) {
    .dashboard_main,
    .dashboard_page {
        margin-left: 0 !important;
        width: 100vw !important;
        padding-top: 24px;
    }
}

.flex-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.profile_panel,
.users_panel {
    background: var(--bgColor1);
    border-radius: 14px;
    padding: 30px 24px 24px 24px;
    margin-bottom: 24px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 0 16px rgba(203, 19, 19, 0.18);
    color: var(--txtColor);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.profile_panel h4 {
    color: var(--txtColorZoom);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1.25em;
    letter-spacing: 0.04em;
}

.profile_panel label,
.users_panel label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--txtColorDrk);
}

.profile_panel input[type="text"],
.profile_panel input[type="email"],
.profile_panel input[type="password"],
.profile_panel input[type="file"],
.profile_panel textarea {
    background: var(--bgColor2);
    border: 1px solid var(--txtColorDrk);
    border-radius: 7px;
    color: var(--txtColor);
    padding: 9px 11px;
    font-size: 1em;
    margin-bottom: 18px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.profile_panel input[type="text"]:focus,
.profile_panel input[type="email"]:focus,
.profile_panel input[type="password"]:focus,
.profile_panel textarea:focus {
    border-color: var(--txtColorZoom);
    outline: none;
}

.profile_panel input[type="file"] {
    padding: 6px 0;
    margin-bottom: 18px;
    background: transparent;
    border: none;
    color: var(--txtColorZoom);
}

.profile_panel textarea {
    resize: vertical;
    min-height: 70px;
    max-height: 160px;
}

.profile-thumbnail {
    height: 256px;
    width: 70%;
    background-position: center;
    background-size: cover;
    filter: brightness(0.7);
    border-radius: 18px 18px 0 0;
}

.submit_button {
    background: var(--txtColorZoom);
    color: var(--bgColor1);
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    margin: 10px 0 2px 0;
    padding: 11px 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(203, 19, 19, 0.15);
}

.submit_button:hover {
    background: var(--txtColorZoom2);
    color: var(--txtColor);
}

.profile-picture-img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 75px;
    border: 3px solid var(--txtColorZoom);
    background: #fff;
    margin-bottom: 16px;
}

.social-list {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
}

.social-list li {
    display: flex;
    align-items: center;
    margin-bottom: 7px;
    word-break: break-all;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--txtColorDrk);
}

.social-list i {
    margin-right: 10px;
    color: var(--txtColorZoom);
    font-size: 1.08em;
}

.social-list a {
    color: var(--txtColor);
    text-decoration: underline;
    font-size: 1em;
    margin-right: 10px;
    transition: color 0.22s;
}

.social-list a:hover {
    color: var(--txtColorZoom);
}

.remove_btn {
    background: transparent;
    color: var(--txtColorZoom);
    border: none;
    font-size: 0.99em;
    font-weight: 600;
    margin-left: 4px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 5px;
    transition: background 0.2s;
}

.remove_btn:hover {
    background: var(--txtColorZoom2);
    color: var(--txtColor);
}

.social-add-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.social-add-form label {
    margin-bottom: 0;
}

.social-add-form input[type="text"],
.social-add-form input[type="url"] {
    padding: 7px 8px;
    border-radius: 7px;
    background: var(--bgColor2);
    border: 1px solid var(--txtColorDrk);
    color: var(--txtColor);
    font-size: 0.99em;
    margin-bottom: 0;
}

.social-add-form button {
    padding: 7px 18px;
    border-radius: 7px;
    background: var(--txtColorZoom);
    color: var(--bgColor1);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.social-add-form button:hover {
    background: var(--txtColorZoom2);
}

.flex-row>.news_panel {
    background: var(--bgColor1);
    border-radius: 8px;
    padding: 20px;
    margin: 0 15px 20px 15px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 0 8px rgba(203, 19, 19, 0.3);
}

.news_panel h3 {
    margin-bottom: 12px;
    border-bottom: 2px solid var(--txtColorZoom);
    padding-bottom: 4px;
    font-weight: 700;
    color: var(--txtColorZoom);
}

.news_panel input[type="text"],
.news_panel input[type="file"],
.news_panel select,
.news_panel textarea {
    width: 100%;
    margin: 8px 0 12px 0;
    padding: 8px 10px;
    background: var(--bgColor2);
    border: 1px solid var(--txtColorDrk);
    border-radius: 6px;
    color: var(--txtColor);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.news_panel input[type="text"]:focus,
.news_panel select:focus,
.news_panel textarea:focus {
    border-color: var(--txtColorZoom);
    outline: none;
}

#news_tag_selector {
    height: 100px;
}

.news_panel .flex-row form {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.news_panel .flex-row input[type="text"] {
    width: 160px;
    margin-right: 6px;
}

.news_panel .flex-row input[type="submit"] {
    background: var(--txtColorZoom);
    color: var(--bgColor1);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.news_panel .flex-row input[type="submit"]:hover {
    background: var(--txtColorZoom2);
}

.flex-row>p {
    padding: 0 5px;
    line-height: 80px;
    font-weight: 800;
    color: var(--txtColorDrk);
}

.news-card {
    background: var(--bgColor1);
    border: 1px solid var(--txtColorDrk);
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 700px;
    width: 100%;
    padding: 16px;
    box-shadow: 0 0 12px rgba(203, 19, 19, 0.4);
    color: var(--txtColor);
    font-size: 0.95rem;
}

.news-card-thumbnail img {
    border-radius: 8px;
    max-height: 180px;
    width: 100%;
    object-fit: cover;
}

.news_new_thumbnail {
    margin-top: 8px;
}

.news_thumbnail_modify {
    background: var(--txtColorZoom);
    border: none;
    padding: 6px 10px;
    margin-left: 6px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--bgColor1);
    transition: background 0.2s;
}

.news_thumbnail_modify:hover {
    background: var(--txtColorZoom2);
}

.news-card-text {
    margin-top: 12px;
}

.news-card-inner {
    margin-bottom: 8px;
}

.news-card-text input[type="text"],
.news-card-text textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--txtColorDrk);
    background: var(--bgColor2);
    color: var(--txtColor);
    padding: 8px 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.news-card-text input[type="text"]:focus,
.news-card-text textarea:focus {
    border-color: var(--txtColorZoom);
    outline: none;
}

.news-display-txt {
    min-height: 80px;
}

.news_modify {
    background: var(--txtColorZoom);
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--bgColor1);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.news_modify i {
    margin-left: 4px;
}

.news_modify:hover {
    background: var(--txtColorZoom2);
}

.author {
    margin-top: 12px;
    display: flex;
    align-items: center;
}

.author-pp {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid var(--txtColorZoom);
    margin-right: 10px;
}

.author small {
    color: var(--txtColorDrk);
}

.author h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.big_news_submit {
    background: var(--txtColorZoom);
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--bgColor1);
    transition: background 0.2s;
    font-size: 1rem;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.big_news_submit:hover {
    background: var(--txtColorZoom2);
}

.users_panel {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--txtColor);
    font-family: 'Open Sans', sans-serif;
}

.users_panel h3 {
    margin-bottom: 16px;
    border-bottom: 2px solid var(--txtColorZoom);
    padding-bottom: 6px;
    font-weight: 700;
    color: var(--txtColorZoom);
}

.users_panel form input[type="text"],
.users_panel form input[type="email"],
.users_panel form input[type="password"],
.users_panel form input[type="file"],
.users_panel form select,
.users_panel form textarea {
    width: 80%;
    padding: 8px 10px;
    margin: 8px 0 14px 0;
    background: var(--bgColor2);
    border: 1px solid var(--txtColorDrk);
    border-radius: 6px;
    color: var(--txtColor);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.users_panel form input[type="text"]:focus,
.users_panel form input[type="email"]:focus,
.users_panel form input[type="password"]:focus,
.users_panel form select:focus,
.users_panel form textarea:focus {
    border-color: var(--txtColorZoom);
    outline: none;
}

.users_panel form select[multiple] {
    height: 100px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

label input[type="text"],
label input[type="email"],
label input[type="password"],
label input[type="file"],
label select,
label textarea {
    margin-top: 4px;
}

.user-card {
    background: var(--bgColor2);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 0 8px rgba(203, 19, 19, 0.35);
    color: var(--txtColor);
}

.user-card .flex-row {
    align-items: center;
}

.user-card img {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    object-fit: cover;
    border: 2px solid var(--txtColorZoom);
    margin-right: 15px;
}

.user-card h3 {
    margin: 0 0 4px 0;
}

.user-card small {
    color: var(--txtColorDrk);
}

.user-card form {
    margin-left: auto;
}

.big_news_submit {
    background: #b33030;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--bgColor1);
    transition: background 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.big_news_submit:hover {
    background: #c90d0d;
}

.user-card form button {
    display: flex;
    align-items: center;
}

.user-card form button i {
    pointer-events: none;
}

.groups_panel {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--txtColor);
    font-family: 'Open Sans', sans-serif;
    background: var(--bgColor2);
}

.group-card {
    background: var(--bgColor1);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 16px;
    box-shadow: 0 0 8px rgba(203, 19, 19, 0.35);
    color: var(--txtColor);
    display: flex;
    flex-direction: column;
}

.group-card fieldset {
    border: 1px solid var(--txtColorDrk);
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 8px;
    background: var(--bgColor2);
}

.group-card fieldset legend {
    font-weight: 700;
    color: var(--txtColorZoom);
    padding: 0 6px;
}

.group-card fieldset>div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.group-card label {
    font-weight: 500;
    color: var(--txtColorDrk);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.group-card input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--txtColorZoom);
}

.group-card input[type="text"] {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    background: var(--bgColor2);
    border: 1px solid var(--txtColorDrk);
    border-radius: 6px;
    color: var(--txtColor);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.group-card input[type="text"]:focus {
    border-color: var(--txtColorZoom);
    outline: none;
}

.group-card .submit_button {
    margin-top: 12px;
    align-self: flex-start;
}

.group-card form.delete-group {
    margin-top: 10px;
    text-align: right;
}

.group-card form.delete-group button {
    font-size: 0.95rem;
    padding: 6px 12px;
}

.dashboard_team_main {
    background: var(--bgColor2);
    border-radius: 18px;
    box-shadow: 0 4px 20px var(--txtColorTransparent);
    width: 100%;
    margin: auto;
    padding: 36px 40px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.team_header {
    font-size: 2.2rem;
    color: var(--txtColorZoom);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.team_panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: var(--bgColor1);
    border-radius: 14px;
    padding: 28px 24px 24px 24px;
    box-shadow: 0 2px 12px var(--txtColorTransparent);
    border: 1px solid var(--txtColorDrk);
}

.section {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--txtColorDrk);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team_panel label {
    font-size: 1.1rem;
    color: var(--txtColor);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.team_input_txt {
    font-size: 1rem;
    background: var(--bgColor2);
    color: var(--txtColor);
    border: 1.8px solid var(--txtColorDrk);
    padding: 11px 15px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
    width: 80%;
    box-sizing: border-box;
}

.team_input_txt:focus {
    border-color: var(--txtColorZoom);
    background: var(--bgColor1);
}

textarea.team_input_txt {
    min-height: 100px;
    resize: vertical;
}

.team-logo-img, .team_panel img {
    display: block;
    margin: 8px 0 16px 0;
    border-radius: 8px;
    background: var(--bgColor2);
    border: 1.2px solid var(--txtColorDrk);
    max-width: 250px;
    max-height: 140px;
    object-fit: contain;
    box-shadow: 0 4px 14px var(--txtColorTransparent);
}

.team_panel video {
    display: block;
    margin: 8px 0 16px 0;
    border-radius: 8px;
    background: var(--bgColor2);
    border: 1.2px solid var(--txtColorDrk);
    max-width: 320px;
    max-height: 180px;
}

.team_panel input[type="file"] {
    background: none;
    color: var(--txtColor);
    border: none;
    font-size: 1rem;
    margin-bottom: 8px;
    padding: 0;
}

.team_panel input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--txtColorZoom2);
    transform: scale(1.25);
    cursor: pointer;
}

@media (max-width: 1000px) {
    .flex-row {
        flex-direction: column;
    }

    .flex-row>.news_panel,
    .flex-row>.users_panel {
        width: 100%;
        margin: 0 0 20px 0;
    }

    .flex-row>p {
        display: none;
    }

    .dashboard_main {
        width: 100vw;
        margin-left: 30px;
    }

    .groups_panel {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .group-card fieldset>div {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

        .dashboard_team_main {
        padding: 28px 20px 20px 20px;
        max-width: 100%;
        margin: 16px;
    }

    .team-logo-img, .team_panel img,
    .team_panel video {
        max-width: 100%;
        height: auto;
    }

    .team_input_txt {
        font-size: 1rem;
    }

    .team_header {
        font-size: 1.75rem;
    }
}