/* Минималистичный бело-синий стиль */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #e6f0ff 100%);
    background-attachment: fixed;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    min-width: 200px;
    z-index: 1000; /* Убедимся, что элемент поверх других */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 4px 20px 0 rgba(100, 149, 237, 0.1);
}

.legal-link-item {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    transition: all 0.3s ease;
}

.legal-link-item a {
    display: block;
    color: #6495ed;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

.legal-link-item a:hover {
    color: #5a8ce0;
    text-decoration: underline;
}

/* Темная тема для боковой панели юридических ссылок */
body.dark-theme .legal-links-sidebar {
    background: rgba(26, 42, 58, 0.3);
    border: 1px solid rgba(138, 180, 248, 0.3);
    box-shadow: 0 4px 20px 0 rgba(138, 180, 248, 0.1);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .legal-link-item {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(138, 180, 248, 0.2);
    transition: background 0.3s ease, border 0.3s ease;
}

body.dark-theme .legal-link-item a {
    color: #8ab4f8;
    transition: color 0.3s ease;
}

body.dark-theme .legal-link-item a:hover {
    color: #7aa8f0;
    transition: color 0.3s ease;
}

#auth-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto; /* Центрируем контейнер по горизонтали как #main-interface */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    padding: 30px;
    box-shadow: 0 4px 20px 0 rgba(100, 149, 237, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

body.authenticated #auth-container {
    min-height: auto;
    display: block;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0; /* Убираем авто-центрирование для основного контейнера */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    padding: 30px;
    box-shadow: 0 4px 20px 0 rgba(100, 149, 237, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

/* Центрируем контейнеры внутри оберток */
.main-content-wrapper .container {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

#main-interface {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    padding: 30px;
    box-shadow: 0 4px 20px 0 rgba(100, 149, 237, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

#profile-content {
    background: #f8fbff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

/* Скрываем форму отправки постов на вкладке профиля */
body.profile-tab-active #post-form {
    display: none;
}

/* Скрываем форму отправки постов на вкладке админ-панели */
body.admin-tab-active #post-form {
    display: none;
}

/* Стили для typewriter-анимации */
.typewriter-title {
    display: flex;
    align-items: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #6495ed;
    position: relative;
}

.typewriter-animation {
    display: flex;
    align-items: center;
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: .15em;
    width: 0;
    animation: full-typewriter 4s infinite;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.5em;
    background-color: #6495ed;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes full-typewriter {
    0% {
        width: 0ch;
        opacity: 1;
    }
    5% {
        width: 0ch;
        opacity: 1;
    }
    10% {
        width: 1ch;
        opacity: 1;
    }
    15% {
        width: 2ch;
        opacity: 1;
    }
    20% {
        width: 3ch;
        opacity: 1;
    }
    25% {
        width: 4ch;
        opacity: 1;
    }
    30% {
        width: 5ch;
        opacity: 1;
    }
    35% {
        width: 6ch;
        opacity: 1;
    }
    40% {
        width: 7ch;
        opacity: 1;
    }
    65% {
        width: 7ch;
        opacity: 1;
    }
    70% {
        width: 6ch;
        opacity: 1;
    }
    75% {
        width: 5ch;
        opacity: 1;
    }
    80% {
        width: 4ch;
        opacity: 1;
    }
    85% {
        width: 3ch;
        opacity: 1;
    }
    90% {
        width: 2ch;
        opacity: 1;
    }
    95% {
        width: 1ch;
        opacity: 1;
    }
    97% {
        width: 0ch;
        opacity: 1;
    }
    100% {
        width: 0ch;
        opacity: 1;
    }
}

@keyframes blink {
    0%, 5% {
        opacity: 1;
    }
    5.1%, 10% {
        opacity: 0;
    }
    10.1%, 40% {
        opacity: 0;
    }
    40.1%, 65% {
        opacity: 1;
    }
    65.1%, 70% {
        opacity: 0;
    }
    70.1%, 97% {
        opacity: 0;
    }
    97.1%, 100% {
        opacity: 1;
    }
}

@keyframes blinkCursor {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Центрирование контейнера аутентификации */
body.auth-centered #auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

/* Темная тема */
body.dark-theme {
    background: linear-gradient(135deg, #0a1929 0%, #1a2a3a 100%);
    color: #e0e0e0;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-theme #auth-container {
    background: rgba(26, 42, 58, 0.95);
    border: 1px solid rgba(138, 180, 248, 0.3);
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

body.dark-theme .container,
body.dark-theme #main-interface {
    background: rgba(26, 42, 58, 0.95);
    border: 1px solid rgba(138, 180, 248, 0.3);
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

/* Темная тема для центрирования контейнеров */
body.dark-theme .main-content-wrapper .container,
body.dark-theme .main-content-wrapper #main-interface {
    margin: 0 auto;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

body.dark-theme input,
body.dark-theme textarea {
    background: #1e3a5f;
    color: #e0e0e0;
    border: 1px solid #2a4a6f;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #a0b8e0;
    transition: color 0.3s ease;
}

body.dark-theme .post {
    background: #1e3a5f;
    border: 1px solid #2a4a6f;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

body.dark-theme .post-author {
    color: #8ab4f8;
    transition: color 0.3s ease;
}

body.dark-theme .post-time {
    color: #a0b8e0;
    transition: color 0.3s ease;
}

body.dark-theme .post-content {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

body.dark-theme .auth-tabs,
body.dark-theme .tabs {
    background: #1e3a5f;
    border: 1px solid #2a4a6f;
    transition: background 0.3s ease, border 0.3s ease;
}

body.dark-theme .auth-tab-button,
body.dark-theme .tab-button {
    color: #8ab4f8;
    transition: color 0.3s ease, background 0.3s ease;
}

body.dark-theme .auth-tab-button.active,
body.dark-theme .tab-button.active {
    background: #6495ed;
    color: #ffffff;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-theme #user-info {
    background: #1e3a5f;
    border: 1px solid #2a4a6f;
    color: #8ab4f8;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

body.dark-theme .admin-section {
    background: rgba(30, 58, 95, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid rgba(138, 180, 248, 0.2);
    transition: background 0.3s ease, border 0.3s ease;
}

body.dark-theme .admin-section h3 {
    margin-top: 0;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

body.dark-theme .user-item {
    background: #1e3a5f;
    border: 1px solid #2a4a6f;
    color: #e0e0e0;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

body.dark-theme #posts-feed h2 {
    background: #1e3a5f;
    border: 1px solid #2a4a6f;
    color: #8ab4f8;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

/* Темная тема для контейнера ленты постов */
body.dark-theme #posts-feed {
    background: #1a2a3a;
    transition: background 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
}

body.dark-theme .auth-tab-button:hover:not(.active),
body.dark-theme .tab-button:hover:not(.active) {
    background: rgba(138, 180, 248, 0.1);
    transition: background 0.3s ease;
}

body.dark-theme #login-btn,
body.dark-theme #register-btn,
body.dark-theme #set-nickname-btn,
body.dark-theme #submit-post-btn,
body.dark-theme #logout-btn,
body.dark-theme .image-label {
    background: #6495ed;
    border: 1px solid #6495ed;
    color: white;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

body.dark-theme #login-btn:hover,
body.dark-theme #register-btn:hover,
body.dark-theme #set-nickname-btn:hover,
body.dark-theme #submit-post-btn:hover,
body.dark-theme #logout-btn:hover,
body.dark-theme .image-label:hover {
    background: #5a8ce0;
    border: 1px solid #5a8ce0;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}

body.dark-theme .admin-btn,
body.dark-theme .delete-user-btn {
    background: #ff6347;
    transition: background 0.3s ease;
}

body.dark-theme .admin-btn:hover,
body.dark-theme .delete-user-btn:hover {
    background: #e0553b;
    transition: background 0.3s ease;
}

body.dark-theme .unban-user-btn {
    background: #4CAF50;
    transition: background 0.3s ease;
}

body.dark-theme .unban-user-btn:hover {
    background: #42a047;
    transition: background 0.3s ease;
}


/* Стили для тумблера темы */
.theme-toggle-container {
    display: inline-block;
    margin-right: 10px;
}

.theme-toggle-checkbox {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.theme-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    background: linear-gradient(135deg, #6495ed, #4a7bc9);
    border-radius: 34px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle-switch::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Когда чекбокс отмечен (темная тема) */
.theme-toggle-checkbox:checked + .theme-toggle-switch {
    background: linear-gradient(135deg, #2a4a6f, #1a2a3a);
}

.theme-toggle-checkbox:checked + .theme-toggle-switch::before {
    transform: translateX(26px);
}

/* В темной теме */
body.dark-theme .theme-toggle-switch {
    background: linear-gradient(135deg, #2a4a6f, #1a2a3a);
    transition: all 0.4s ease;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#auth-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-tabs {
    display: flex;
    margin: 20px 0;
    background: rgba(240, 248, 255, 0.5);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(100, 149, 237, 0.2);
}

.auth-tab-button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    background: transparent;
    color: #6495ed;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
    font-weight: 500;
}

.auth-tab-button.active {
    background: #6495ed;
    color: white;
}

.auth-tab-button:hover:not(.active) {
    background: rgba(100, 149, 237, 0.1);
}

#login-form, #register-form {
    margin-top: 20px;
}

#login-username, #login-password, #register-username, #register-password {
    width: 200px;
    padding: 12px 15px;
    font-size: 16px;
    margin: 10px 0;
    border: 1px solid #d0e0ff;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#login-username::placeholder, #login-password::placeholder, #register-username::placeholder, #register-password::placeholder {
    color: #a0b8e0;
}

#login-username:focus, #login-password:focus, #register-username:focus, #register-password:focus {
    border: 1px solid #6495ed;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.2);
    background: #ffffff;
}

#login-btn, #register-btn {
    padding: 12px 25px;
    font-size: 16px;
    background: #6495ed;
    color: white;
    border: 1px solid #6495ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    font-weight: 500;
}

#login-btn:hover, #register-btn:hover {
    background: #5a8ce0;
    border: 1px solid #5a8ce0;
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    transform: translateY(-2px);
}

.consent-checkbox {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.consent-checkbox a {
    color: #6495ed;
    text-decoration: none;
}

.consent-checkbox a:hover {
    text-decoration: underline;
}

/* Темная тема для чекбокса согласия */
body.dark-theme .consent-checkbox {
    color: #a0b8e0;
    transition: color 0.3s ease;
}

body.dark-theme .consent-checkbox a {
    color: #8ab4f8;
    transition: color 0.3s ease;
}

#set-nickname-btn, #submit-post-btn, #logout-btn {
    padding: 12px 25px;
    font-size: 16px;
    background: #6495ed;
    color: white;
    border: 1px solid #6495ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    font-weight: 500;
}

#set-nickname-btn:hover, #submit-post-btn:hover, #logout-btn:hover {
    background: #5a8ce0;
    border: 1px solid #5a8ce0;
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    transform: translateY(-2px);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6f0ff;
}

#theme-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

#auth-theme-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #d0e0ff;
}

.tab-button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    background: transparent;
    color: #6495ed;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
    font-weight: 500;
}

.tab-button.active {
    background: #6495ed;
    color: white;
}

.tab-button:hover:not(.active) {
    background: rgba(100, 149, 237, 0.1);
}

.admin-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 4px 20px 0 rgba(100, 149, 237, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease;
}

.admin-section h3 {
    margin-top: 0;
    color: #6495ed;
}

.admin-btn {
    padding: 10px 15px;
    background: #6495ed;
    color: white;
    border: 1px solid #6495ed;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-btn:hover {
    background: #5a8ce0;
    border: 1px solid #5a8ce0;
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    transform: translateY(-2px);
}

.user-item {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border 0.3s ease;
}

.delete-user-btn {
    background: #6495ed;
    color: white;
    border: 1px solid #6495ed;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.delete-user-btn:hover {
    background: #5a8ce0;
    border: 1px solid #5a8ce0;
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    transform: translateY(-2px);
}

.unban-user-btn {
    background: #6495ed;
    color: white;
    border: 1px solid #6495ed;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.unban-user-btn:hover {
    background: #5a8ce0;
    border: 1px solid #5a8ce0;
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    transform: translateY(-2px);
}

#user-info {
    font-weight: 500;
    color: #6495ed;
    background: #f0f8ff;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #d0e0ff;
}

#post-form {
    margin-bottom: 30px;
    background: #f8fbff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #d0e0ff;
}

/* Темная тема для формы поста */
body.dark-theme #post-form {
    background: #1e3a5f;
    border: 1px solid #2a4a6f;
    transition: background 0.3s ease, border 0.3s ease;
}


#post-text {
    width: 100%;
    height: 80px;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #d0e0ff;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

#post-text::placeholder {
    color: #a0b8e0;
}

#post-text:focus {
    border: 1px solid #6495ed;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.2);
    background: #ffffff;
}

/* Темная тема для поля ввода */
body.dark-theme #post-text {
    background: #1e3a5f;
    color: #e0e0e0;
    border: 1px solid #2a4a6f;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

body.dark-theme #post-text::placeholder {
    color: #a0b8e0;
    transition: color 0.3s ease;
}

body.dark-theme #post-text:focus {
    border: 1px solid #8ab4f8;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.2);
    background: #1e3a5f;
}


.drag-area {
    border: 2px dashed #6495ed;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(100, 149, 237, 0.05);
    position: relative;
}

/* Темная тема для области перетаскивания */
body.dark-theme .drag-area {
    border: 2px dashed #8ab4f8;
    background: rgba(138, 180, 248, 0.05);
    transition: background 0.3s ease, border 0.3s ease;
}

.drag-area:hover,
.drag-area.drag-over {
    background: rgba(100, 149, 237, 0.1);
    border-color: #5a8ce0;
    transition: background 0.3s ease, border 0.3s ease;
}


.drag-area p {
    margin: 0;
    color: #6495ed;
    font-size: 14px;
    transition: color 0.3s ease;
}


.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #6495ed;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s, background 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.remove-image-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    transition: opacity 0.3s, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

body.dark-theme .drag-area:hover,
body.dark-theme .drag-area.drag-over {
    background: rgba(138, 180, 248, 0.1);
    border-color: #7aa8f0;
    transition: background 0.3s ease, border 0.3s ease;
}

body.dark-theme .drag-area p {
    color: #8ab4f8;
    transition: color 0.3s ease;
}




/* Стили для SVG иконки самолетика */
body.dark-theme .paper-plane-icon svg path {
    stroke: white;
    transition: stroke 0.3s ease;
}

/* Темная тема для контейнера профиля */
body.dark-theme #profile-content {
    background: #1a2a3a;
    border-radius: 8px;
    padding: 15px;
    transition: background 0.3s ease;
}

/* Темная тема для заголовка профиля */
body.dark-theme #profile-header h2 {
    color: #8ab4f8;
    transition: color 0.3s ease;
}

/* Стили для информации о профиле */
#profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    padding: 15px;
    background: rgba(100, 149, 237, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 2px 4px rgba(100, 149, 237, 0.1);
}

.profile-stat {
    text-align: center;
    flex: 1;
    padding: 5px;
}

.profile-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #6495ed;
    margin-bottom: 5px;
}

.profile-stat-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* Темная тема для статистики профиля */
body.dark-theme #profile-stats {
    background: rgba(26, 42, 58, 0.3);
    border: 1px solid rgba(138, 180, 248, 0.2);
    box-shadow: 0 2px 4px rgba(138, 180, 248, 0.1);
}

body.dark-theme .profile-stat-value {
    color: #8ab4f8;
}

body.dark-theme .profile-stat-label {
    color: #a0b8e0;
}

/* Темная тема для заголовка пользовательских постов */
body.dark-theme #user-posts-feed h3 {
    color: #8ab4f8;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 10px 0 15px 0;
    transition: color 0.3s ease;
}

#admin-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 4px 20px 0 rgba(100, 149, 237, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* Темная тема для контейнера админ-панели */
body.dark-theme #admin-content {
    background: rgba(26, 42, 58, 0.95);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(138, 180, 248, 0.3);
    box-shadow: 0 4px 20px 0 rgba(138, 180, 248, 0.1);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

#admin-header h2 {
    color: #6495ed;
    transition: color 0.3s ease;
}

/* Темная тема для заголовка админ-панели */
body.dark-theme #admin-header h2 {
    color: #8ab4f8;
    transition: color 0.3s ease;
}

/* Общие стили для изображений в постах */
.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.1);
}

/* Темная тема для изображений в постах */
body.dark-theme .post-image img {
    box-shadow: 0 2px 8px rgba(138, 180, 248, 0.1);
    transition: box-shadow 0.3s ease;
}

.legal-links {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    font-size: 12px;
    color: #666;
}

.legal-links a {
    color: #6495ed;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Темная тема для юридических ссылок */
body.dark-theme .legal-links {
    color: #a0b8e0;
    transition: color 0.3s ease;
}

body.dark-theme .legal-links a {
    color: #8ab4f8;
    transition: color 0.3s ease;
}

#submit-post-btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: #6495ed;
    color: white;
    border: 1px solid #6495ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#submit-post-btn:hover {
    background: #5a8ce0;
    border: 1px solid #5a8ce0;
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    transform: translateY(-2px);
}

.paper-plane-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.paper-plane-icon svg {
    width: 100%;
    height: 100%;
}

#post-image {
    display: none;
}

#posts-feed {
    background: #f8fbff;
    border-radius: 8px;
    padding: 10px;
    transition: background 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
}

#posts-feed h2 {
    margin-top: 0;
    color: #6495ed;
    text-align: center;
    background: #f0f8ff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d0e0ff;
    margin: 0 0 15px 0; /* Добавим нижний отступ для заголовка */
    transition: color 0.3s ease, background 0.3s ease, border 0.3s ease;
}

#user-posts-feed h3 {
    margin-top: 0;
    color: #6495ed;
    text-align: left;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    margin: 10px 0 15px 0;
    transition: color 0.3s ease;
}



.post {
    border: 1px solid #e6f0ff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.05);
}


.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(100, 149, 237, 0.1);
    border-color: #d0e0ff;
}

.post-author {
    font-weight: 600;
    color: #6495ed;
}

.post-time {
    color: #a0b8e0;
    font-size: 0.9em;
    margin-left: 10px;
}

.post-content {
    margin: 10px 0;
    line-height: 1.5;
    color: #333;
}

.post-image {
    margin-top: 10px;
}


.post-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid #e6f0ff;
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.1);
}

.post-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.like-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #6495ed;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: rgba(100, 149, 237, 0.1);
}

.like-icon {
    font-size: 16px;
}

.like-count {
    font-weight: 500;
}

/* Темная тема для кнопки лайка */
body.dark-theme .like-btn {
    color: #8ab4f8;
    transition: color 0.3s ease, background 0.3s ease;
}

body.dark-theme .like-btn:hover {
    background: rgba(138, 180, 248, 0.1);
    transition: background 0.3s ease;
}

.complaint-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #ff6b6b;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.complaint-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Темная тема для кнопки жалобы */
body.dark-theme .complaint-btn {
    color: #ff9e9e;
    transition: color 0.3s ease, background 0.3s ease;
}

body.dark-theme .complaint-btn:hover {
    background: rgba(255, 158, 158, 0.1);
    transition: background 0.3s ease;
}

/* Стили для отображения жалоб в админ-панели */
.complaint-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 4px 20px 0 rgba(100, 149, 237, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

body.dark-theme .complaint-item {
    background: rgba(26, 42, 58, 0.95);
    border: 1px solid rgba(138, 180, 248, 0.3);
    box-shadow: 0 4px 20px 0 rgba(138, 180, 248, 0.1);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* Стили для отображения постов на модерации в админ-панели */
.moderation-post-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 248, 220, 0.95); /* Светло-бежевый фон для постов на модерации */
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3); /* Желтая граница */
    box-shadow: 0 4px 20px 0 rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.moderation-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.moderation-post-id {
    font-weight: bold;
    color: #6495ed;
}

.moderation-post-time {
    color: #a0b8e0;
    font-size: 0.9em;
}

.moderation-post-author {
    font-weight: 500;
    color: #6495ed;
}

.moderation-post-content {
    margin: 10px 0;
    line-height: 1.5;
    color: #333;
}

.moderation-post-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Темная тема для элементов модерации */
body.dark-theme .moderation-post-item {
    background: rgba(70, 50, 0, 0.3); /* Темно-коричневый фон в темной теме */
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 20px 0 rgba(255, 215, 0, 0.1);
}

body.dark-theme .moderation-post-header {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

body.dark-theme .moderation-post-id {
    color: #ffd700; /* Желтый цвет в темной теме */
}

body.dark-theme .moderation-post-time {
    color: #f0e68c; /* Светло-желтый цвет в темной теме */
}

body.dark-theme .moderation-post-author {
    color: #ffd700; /* Желтый цвет в темной теме */
}

body.dark-theme .moderation-post-content {
    color: #e0e0e0;
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e6f0ff;
}

body.dark-theme .complaint-header {
    border-bottom: 1px solid #2a4a6f;
    transition: border 0.3s ease;
}

.complaint-id {
    font-weight: bold;
    color: #6495ed;
}

.complaint-time {
    color: #999;
    font-size: 0.9em;
}

.complaint-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

body.dark-theme .status-pending {
    background: #5a4a2a;
    color: #e0c56a;
}

.status-reviewed {
    background: #d1ecf1;
    color: #0c5460;
}

body.dark-theme .status-reviewed {
    background: #2a5a5f;
    color: #a3d9e0;
}

.status-resolved {
    background: #d4edda;
    color: #155724;
}

body.dark-theme .status-resolved {
    background: #2a5a3a;
    color: #a3e0a3;
}

.complaint-details p {
    margin: 5px 0;
    line-height: 1.4;
}

.complaint-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.complaint-actions .admin-btn {
    margin: 0;
}

