* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: rgb(36, 36, 36);
    --bg-secondary: rgb(45, 45, 45);
    --bg-tertiary: rgb(59, 59, 59);
    --bg-code: rgb(14, 14, 14);
    --accent-green: #00FF00;
    --accent-green-hover: #00bd00;
    --accent-green-bg: #00a3003a;
    --border-green: #00bd00;
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --text-muted: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

html, body {
    height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--bg-primary);
    border-bottom: 2px solid var(--border-green);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-green);
}

.header-logo .version {
    background-color: var(--accent-green-bg);
    border: 2px solid var(--border-green);
    color: var(--accent-green);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

.header-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-nav .steam-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.header-nav .steam-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.header-nav .steam-info span {
    color: var(--text-primary);
    font-weight: 500;
}

.header-nav a {
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-nav a:hover {
    background-color: var(--accent-green);
    color: #000;
}

/* Main Container */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 60px);
}

/* Sidebar Navigation */
.sidebar {
    width: 300px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-green);
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-bottom: 20px;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background-color: var(--bg-tertiary);
    border-left-color: var(--accent-green);
}

.sidebar-menu a.active {
    background-color: var(--accent-green-bg);
    border-left-color: var(--border-green);
    color: var(--accent-green);
    font-weight: 600;
}

/* Content Area */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.card-header h4 {
    color: var(--accent-green);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-body {
    padding: 20px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table thead {
    background-color: rgba(255, 255, 255, 0.08);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.03);
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.06);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-bordered {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thead-dark {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.thead-dark th {
    color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--border-green);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.input-wrapper {
    position: relative;
}

.clear-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    transition: color 0.3s ease;
}

.clear-icon:hover {
    color: var(--accent-green);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-green-hover);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green) !important;
}

.btn-outline-primary:hover {
    background-color: var(--accent-green);
    color: #000 !important;
}

/* Явное указание цвета текста для кнопок */
.btn, .btn a {
    color: inherit !important;
}

.btn-primary, .btn-primary a {
    color: #000 !important;
}

.btn-outline-primary, .btn-outline-primary a {
    color: var(--accent-green) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:hover a {
    color: #000 !important;
}

.btn-outline-success {
    background-color: transparent;
    border: 2px solid #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background-color: #10b981;
    color: #000;
}

.btn-outline-info {
    background-color: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline-info:hover {
    background-color: #3b82f6;
    color: #000;
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.bg-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-green);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h4 {
    color: var(--accent-green);
    font-size: 20px;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination button {
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--accent-green-bg);
    border-color: var(--border-green);
    color: var(--accent-green);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: var(--accent-green);
    color: #000;
    border-color: var(--border-green);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Auth Block */
.auth-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.auth-block h4 {
    color: var(--accent-green);
    font-size: 24px;
    margin-bottom: 15px;
}

.auth-block p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.steambutton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--accent-green);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.steambutton:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 300px;
    }

    .content {
        padding: 20px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
}

/* Tabs стили */
.nav-tabs {
    border-bottom: 2px solid var(--border-green);
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-tabs .nav-item {
    margin: 0;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 24px;
    margin-bottom: -2px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-tabs .nav-link:hover {
    color: var(--accent-green);
    background: var(--accent-green-bg);
}

.nav-tabs .nav-link.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
    background: transparent;
    font-weight: 600;
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Alert стили */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.5);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #51cf66;
    border-color: rgba(40, 167, 69, 0.5);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.5);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.2);
    color: #4dabf7;
    border-color: rgba(23, 162, 184, 0.5);
}

/* Modal центрирование */
.modal {
    display: none;
}

.modal.show {
    display: block;
}

.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-dialog-centered::before {
    content: "";
    display: block;
    height: calc(100vh - 3.5rem);
    min-height: inherit;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text-primary);
    width: 100%;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Переопределение для темной темы */
.modal-content .text-dark {
    color: var(--text-primary) !important;
}

.modal-content .form-label.text-dark {
    color: var(--text-primary) !important;
}

.modal-content .form-text {
    color: var(--text-secondary) !important;
}

/* Улучшение читаемости текста на темном фоне */
.text-muted,
.text-secondary,
small,
.form-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Заголовки и важный текст */
h1, h2, h3, h4, h5, h6 {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Обычный текст */
p, span, div, td, th, label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Текст в карточках */
.card p,
.card span,
.card div,
.card-body p,
.card-body span {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Текст в таблицах */
.table p,
.table span,
.table div,
.table small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Примечания и подсказки */
.form-text,
.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Улучшение sidebar */
.sidebar-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Исправление отступов в sidebar */
.sidebar-links > li {
    margin: 0;
}

.sidebar-list {
    margin: 0 !important;
    padding: 0 !important;
}

/* Page Wrapper Structure (как в оригинале) */
body.dark-only {
    background-color: #1d1d1d;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.page-header {
    background: #1d1d1d;
    padding: 0;
    margin: 0;
}

.header-wrapper {
    padding: 15px 30px;
    background: #1d1d1d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-full {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-menus {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 15px;
}

.page-body-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar-wrapper {
    width: 260px;
    background: #1d1d1d;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Предотвращаем прокрутку всего sidebar */
}

.logo-wrapper {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-wrapper img {
    max-width: 120px;
    height: auto;
}

.sidebar-main {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Важно для flex */
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list {
    position: relative;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-list:last-child {
    border-bottom: none;
}

.sidebar-list > .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 500;
}

.sidebar-list > .sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.sidebar-list > .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 23px;
}

.sidebar-list > .sidebar-link:hover::before {
    background: #00FF00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.sidebar-list > .sidebar-link.active {
    background: rgba(0, 255, 0, 0.12);
    color: #00FF00;
    padding-left: 23px;
    font-weight: 600;
}

.sidebar-list > .sidebar-link.active::before {
    background: #00FF00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.6);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-link .stroke-icon {
    display: block;
}

.sidebar-link .fill-icon {
    display: none;
}

.sidebar-link:hover .stroke-icon {
    display: none;
}

.sidebar-link:hover .fill-icon {
    display: block;
}

/* Стили для Font Awesome иконок в меню */
.sidebar-link .menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.sidebar-link:hover .menu-icon,
.sidebar-link.active .menu-icon {
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-link.active .menu-icon {
    color: #00FF00;
}

.sidebar-link.sidebar-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Улучшенные стили для меню с подменю */
.sidebar-menu-group {
    position: relative;
}

.sidebar-menu-group .sidebar-title {
    position: relative;
    padding-right: 40px;
}

.sidebar-menu-group .submenu-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-menu-group.open .submenu-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #00FF00;
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid #00FF00;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.sidebar-menu-group.open .sidebar-submenu {
    max-height: 500px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.sidebar-submenu li {
    margin: 0;
    padding: 0;
}

.sidebar-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 50px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.sidebar-submenu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 53px;
}

.sidebar-submenu a:hover::before {
    background: #00FF00;
}

.sidebar-submenu a.active {
    background: rgba(0, 255, 0, 0.15);
    color: #00FF00;
    font-weight: 600;
    padding-left: 53px;
}

.sidebar-submenu a.active::before {
    background: #00FF00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.sidebar-submenu .submenu-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-submenu a:hover .submenu-icon,
.sidebar-submenu a.active .submenu-icon {
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-submenu a span {
    flex: 1;
}

.page-body {
    flex: 1;
    padding: 30px;
    background: #1d1d1d;
    overflow-y: auto;
}

.back-btn {
    display: none;
}

.pin-title {
    display: none;
}

.left-arrow,
.right-arrow {
    display: none;
}

.toggle-sidebar {
    display: none;
}

.logo-icon-wrapper {
    display: none;
}

.mobile-back {
    display: none;
}

/* Формы и инпуты в темной теме */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #00FF00;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 0, 0.25);
}

.form-label {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Таблицы - дополнительные стили для совместимости */
.table {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table thead {
    background: rgba(255, 255, 255, 0.08) !important;
}

.table th {
    color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
    font-weight: 600 !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.table td {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.table tbody tr {
    background: transparent;
}

.table-bordered {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.card-body {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Кнопки */
.btn-primary {
    background: #00FF00;
    border-color: #00FF00;
    color: #000;
}

.btn-primary:hover {
    background: #00bd00;
    border-color: #00bd00;
    color: #000;
}

.btn-outline-success {
    border-color: #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background: #10b981;
    border-color: #10b981;
    color: #000;
}

.btn-outline-info {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-outline-info:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #000;
}

/* Чекбоксы */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: #00FF00;
    border-color: #00FF00;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.95);
}

/* Переопределение всех белых фонов Bootstrap и других элементов */
body,
html {
    background-color: #1d1d1d !important;
}

/* Формы - переопределение всех возможных белых фонов */
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #00FF00 !important;
    color: #fff !important;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="datetime-local"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Bootstrap selectpicker */
.bootstrap-select .btn,
.bootstrap-select .dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.bootstrap-select .btn:hover,
.bootstrap-select .btn:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #00FF00 !important;
    color: #fff !important;
}

.bootstrap-select .dropdown-menu {
    background-color: rgba(40, 40, 40, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.bootstrap-select .dropdown-menu .dropdown-item {
    color: #fff !important;
    background-color: transparent !important;
}

.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.bootstrap-select .dropdown-menu .dropdown-item.active {
    background-color: rgba(0, 255, 0, 0.2) !important;
    color: #00FF00 !important;
}

/* Badge */
.badge {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Внутренние таблицы в логах */
.table-sm {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.table-sm td,
.table-sm th {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Модальные окна */
.modal-content {
    background-color: rgba(40, 40, 40, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-header,
.modal-body,
.modal-footer {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Pagination */
.pagination .page-link {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.pagination .page-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.pagination .page-item.active .page-link {
    background-color: #00FF00 !important;
    border-color: #00FF00 !important;
    color: #000 !important;
}

/* Детали и summary */
details {
    background-color: transparent !important;
}

summary {
    background-color: transparent !important;
    color: #fff !important;
}

pre,
code {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Убираем белый фон у всех элементов Bootstrap */
.bg-white,
.bg-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.text-dark {
    color: #fff !important;
}

/* Select options */
select option {
    background-color: rgba(40, 40, 40, 0.98) !important;
    color: #fff !important;
}

/* Ссылки - правильные цвета для темной темы */
a {
    color: #00FF00 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00bd00 !important;
    text-decoration: underline;
}

a:visited {
    color: #00FF00 !important;
}

a:active {
    color: #00bd00 !important;
}

/* Ссылки в таблицах */
.table a,
.table-sm a {
    color: #00FF00 !important;
}

.table a:hover,
.table-sm a:hover {
    color: #00bd00 !important;
    text-decoration: underline;
}

/* Ссылки в карточках */
.card a,
.card-body a {
    color: #00FF00 !important;
}

.card a:hover,
.card-body a:hover {
    color: #00bd00 !important;
    text-decoration: underline;
}

/* Ссылки в модальных окнах */
.modal-content a {
    color: #00FF00 !important;
}

.modal-content a:hover {
    color: #00bd00 !important;
    text-decoration: underline;
}

/* Ссылки в sidebar */
.sidebar a,
.sidebar-link,
.sidebar-submenu a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.sidebar a:hover,
.sidebar-link:hover,
.sidebar-submenu a:hover {
    color: #fff !important;
}

.sidebar a.active,
.sidebar-link.active,
.sidebar-submenu a.active {
    color: #00FF00 !important;
}

/* Input wrapper для лучшей читаемости */
.input-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2px;
}

.input-wrapper .form-control,
.input-wrapper .form-select {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Selectpicker стили */
.selectpicker {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

.bootstrap-select .dropdown-menu {
    background-color: rgba(40, 40, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bootstrap-select .dropdown-menu a {
    color: #fff;
}

.bootstrap-select .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Стили для блока информации о пользователе в sidebar */
.sidebar-footer {
    flex-shrink: 0;
    padding: 15px 15px 75px 15px; /* Увеличен нижний отступ в 3 раза */
    background: rgba(29, 29, 29, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Прижимает к низу */
}

.sidebar-user-info {
    width: 100%;
}

.steam-info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.steam-info-card.sidebar-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 15px;
}

.steam-info-card:hover {
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.steam-info-card.sidebar-card:hover {
    transform: none;
}

.user-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.role-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-icon {
    font-size: 14px;
    color: var(--accent-green);
    opacity: 0.8;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.role-owner {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.25) 0%, rgba(0, 255, 0, 0.15) 100%);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 0, 0.4);
    box-shadow: 0 2px 8px rgba(0, 255, 0, 0.2);
}

.role-admin {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.steamid-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.steam-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.steamid-display {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.steamid-wrapper:hover .steam-icon {
    color: var(--accent-green);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logout-btn.sidebar-logout {
    width: 100%;
    justify-content: center;
}

.logout-btn i {
    font-size: 14px;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff5252;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.logout-btn.sidebar-logout:hover {
    transform: none;
}

.logout-btn:active {
    transform: translateX(0);
}

.logout-btn.sidebar-logout:active {
    transform: scale(0.98);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .steam-info-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .logout-btn {
        justify-content: center;
        width: 100%;
    }
    
    .user-info-content {
        gap: 6px;
    }
}

/* Welcome page styles */
.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--bg-primary);
}

.welcome-card {
    width: 100%;
    max-width: 600px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.welcome-header {
    background-color: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-green);
    color: var(--text-primary);
    padding: 30px;
    text-align: center;
}

.welcome-header h1 {
    margin: 0;
    font-size: 2em;
    color: var(--accent-green);
}

.welcome-header .subtitle {
    margin-top: 10px;
    color: var(--text-secondary);
    opacity: 0.9;
}

.welcome-body {
    padding: 30px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--accent-green);
    border-color: var(--border-green);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.step.completed .step-circle {
    background: var(--accent-green);
    border-color: var(--border-green);
    color: #000;
}

.step.completed .step-circle::after {
    content: '✓';
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--accent-green);
    font-weight: bold;
}

.step.completed .step-label {
    color: var(--accent-green);
}

.info-box {
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--border-green);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.info-box strong {
    color: var(--accent-green);
}

.steamid-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}


