:root {
    --primary-red: #cd0303;
    --dark-bg: #172110;
    --darker-bg: #0f170a;
    --border-color: #52574e;
    --text-light: #f8f8f8;
    --text-muted: #bbbbbb;
    --card-bg: rgba(41, 50, 35, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'PT Sans', 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif;
    background: var(--dark-bg) url('https://st.mafiaonline.ru/images/new/bg-blurred.jpg') no-repeat fixed center top;
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff3333;
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.auth-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #333;
}

.form-input::placeholder {
    color: #666;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: #ff3333;
    text-decoration: none;
}

.btn-link {
    background: none;
    color: var(--primary-red);
    padding: 0;
}

.btn-theme {
    padding: 8px 12px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-theme:hover {
    background: #ff3333;
    text-decoration: none;
}

.navbar {
    background: rgba(41, 50, 35, 0.85);
    border-bottom: 2px solid var(--border-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    font-weight: bold;
    border-right: 1px solid var(--border-color);
}

.nav-link:hover {
    background-color: rgba(82, 87, 78, 0.3);
    text-decoration: none;
}

.main-content {
    display: flex;
    margin: 20px 0;
    gap: 20px;
}

.content {
    flex: 1;
}

.content-block {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 7px;
    padding: 30px;
    margin-bottom: 20px;
}

.sidebar {
    flex: 0 0 250px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 7px;
    overflow: hidden;
    align-self: flex-start;
}

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

.sidebar-item {
    border-bottom: 1px solid #bbbbbb;
}

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

.sidebar-link {
    display: block;
    padding: 15px 20px;
    color: var(--primary-red);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(205, 3, 3, 0.1);
    text-decoration: none;
}

.stats-section {
    margin-bottom: 30px;
}

.section-title {
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: rgba(248, 248, 248, 0.9);
    border: 1px solid #bbbbbb;
    border-radius: 7px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-red);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-text {
    text-align: justify;
    margin-bottom: 20px;
    color: #333;
}

.welcome-text p {
    margin-bottom: 1em;
    line-height: 1.5;
}

.welcome-text ul {
    margin: 1em 0 1em 2em;
    line-height: 1.5;
    padding-left: 1em;
}

.welcome-text li {
    margin-bottom: 0.5em;
}

.social-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ff3333;
    text-decoration: none;
    transform: translateY(-3px);
}

.footer {
    background: rgba(41, 50, 35, 0.9);
    border-top: 2px solid var(--border-color);
    padding: 15px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

body.dark-theme {
    --primary-red: #ff4444;
    --dark-bg: #172110;
    --darker-bg: #0f170a;
    --border-color: #52574e;
    --text-light: #f8f8f8;
    --text-muted: #bbbbbb;
    --card-bg: rgba(41, 50, 35, 0.85);
}

body.dark-theme .header {
    background-color: rgba(23, 33, 16, 0.7);
}

body.dark-theme .logo-text,
body.dark-theme .form-input {
    color: var(--text-light);
}

body.dark-theme .form-input {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .form-input::placeholder {
    color: var(--text-muted);
}

body.dark-theme .navbar {
    background: rgba(41, 50, 35, 0.85);
}

body.dark-theme .footer {
    background: rgba(23, 33, 16, 0.7);
}

body.dark-theme .content-block,
body.dark-theme .sidebar {
    background: rgba(41, 50, 35, 0.95);
}

body.dark-theme .section-title,
body.dark-theme .welcome-text,
body.dark-theme .stat-label {
    color: var(--text-light);
}

body.dark-theme .stat-card {
    background: rgba(23, 33, 16, 0.7);
    border-color: var(--border-color);
}

body.dark-theme .stat-card .stat-label {
    color: var(--text-light);
}

body.dark-theme .sidebar-link {
    color: var(--primary-red);
}

body.dark-theme .sidebar-link:hover {
    background: rgba(255, 68, 68, 0.1);
}

body.retro-theme {
    --primary-red: #ffcc00;
    --dark-bg: #303d29;
    --darker-bg: #303d29;
    --border-color: #52574e;
    --text-light: #ffffff;
    --text-muted: #bbbbbb;
    --card-bg: #3f5234;
}

body.retro-theme .header {
    background-color: #242e1f;
}

body.retro-theme .logo-text,
body.retro-theme .form-input {
    color: var(--text-light);
}

body.retro-theme .form-input {
    background: rgba(255, 255, 255, 0.1);
}

body.retro-theme .form-input::placeholder {
    color: var(--text-muted);
}

body.retro-theme .navbar {
    background: #303d29;
}

body.retro-theme .footer {
    background: #303d29;
}

body.retro-theme .content-block,
body.retro-theme .sidebar {
    background: #303d29;
}

body.retro-theme .section-title,
body.retro-theme .welcome-text,
body.retro-theme .stat-label {
    color: #ffffff;
}

body.retro-theme .nav-link:hover,
body.retro-theme .sidebar-link:hover,
body.retro-theme a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

body.retro-theme .btn-link:hover {
    color: #ffcc00;
}

body.retro-theme .stat-card {
    background: #242e1f;
    border-color: #ffffff;
}

body.retro-theme .stat-card .stat-label {
    color: #ffffff;
}

body.retro-theme .stat-value {
    color: #ffcc00;
}

body.retro-theme .sidebar-link {
    color: #ffcc00;
}

body.retro-theme .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.retro-theme .social-icon {
    background-color: #ffcc00;
    color: #000000;
}

body.retro-theme .social-icon:hover {
    background-color: #ffd700;
}

body.retro-theme .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.retro-theme .btn-primary {
    background: #ffcc00;
    color: #242e1f;
}

body.retro-theme .btn-primary:hover {
    background: #ffd700;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

#mobileNavToggle {
    right: 10px;
}

#mobileSidebarToggle {
    left: 10px;
}

.mobile-menu-toggle:hover {
    background: #ff3333;
}

.mobile-nav-active .nav-menu {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(41, 50, 35, 0.95);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-sidebar-active .sidebar {
    display: block !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 0;
}

.mobile-sidebar-active .sidebar-menu {
    margin: 0;
}

.mobile-sidebar-active .sidebar-item {
    border-bottom: 1px solid #bbbbbb;
}

.mobile-sidebar-active .sidebar-link {
    padding: 15px 20px;
    color: var(--primary-red);
    font-weight: bold;
}

.mobile-sidebar-active .sidebar-link:hover {
    background: rgba(205, 3, 3, 0.1);
    text-decoration: none;
}

body.dark-theme .mobile-nav-active .nav-menu,
body.dark-theme .mobile-sidebar-active .sidebar {
    background: rgba(41, 50, 35, 0.95);
}

body.dark-theme .mobile-sidebar-active .sidebar-link {
    color: var(--primary-red);
}

body.dark-theme .mobile-sidebar-active .sidebar-link:hover {
    background: rgba(255, 68, 68, 0.1);
}

body.retro-theme .mobile-nav-active .nav-menu,
body.retro-theme .mobile-sidebar-active .sidebar {
    background: rgba(48, 61, 41, 0.95);
}

body.retro-theme .mobile-sidebar-active .sidebar-link {
    color: #ffcc00;
}

body.retro-theme .mobile-sidebar-active .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    .sidebar {
        align-self: stretch;
        flex: 1;
    }
    .nav-menu {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .auth-form {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .btn-theme {
        display: flex !important;
        order: 1;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        margin-top: 60px;
    }
    .nav-link {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .social-section {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    .header {
        padding: 10px 0;
    }
    .logo {
        flex-direction: column;
        text-align: center;
    }
    .logo img {
        margin: 0 0 5px 0;
        height: 50px;
    }
    .auth-form {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .auth-form form {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .form-input {
        width: 100%;
        margin-bottom: 10px;
    }
    .btn-primary,
    .btn-link,
    .btn-theme {
        width: auto;
        min-width: 150px;
        justify-content: center;
        text-align: center;
        display: flex;
        align-items: center;
        padding: 10px 20px;
        margin: 0 auto;
    }
    .btn {
        text-align: center;
    }
    .btn-theme {
        position: static;
        display: flex !important;
    }
    .social-icons {
        flex-wrap: wrap;
        justify-content: center;
    }


}
