/* ===== ОБЩИЕ СТИЛИ ===== */
body, td, th, img {
    padding: 0;
    margin: 0;
}
body, td, th {
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
}
img {
    border: 0;
    vertical-align: middle;
}
form {
    margin-bottom: 0;
}
a {
    text-decoration: none;
    color: #333;
}
a:visited {
    color: #333;
}
a:hover {
    color: #e00;
}
table {
    border-width: 0;
    border-collapse: collapse;
}
input, select {
    box-sizing: border-box;
    vertical-align: middle;
    position: relative;
}
[type="text"], [type="password"], select {
    background-color: #fff;
    border: solid 1px #bbb;
    padding: 2px 3px;
    margin: 0;
    position: relative;
}
[type="text"]:focus, [type="password"]:focus, select:focus {
    z-index: 10;
    outline: none;
}
::-ms-input-placeholder {
    font-weight: normal;
    opacity: 1;
    color: #aaa;
}
::-webkit-input-placeholder {
    font-weight: normal;
    opacity: 1;
    color: #aaa;
}
::-moz-placeholder {
    font-weight: normal;
    opacity: 1;
    color: #aaa;
}
[type="checkbox"], [type="submit"], select, label {
    cursor: pointer;
}
[type="checkbox"] {
    padding: 0;
    margin: 0 2px 0 0;
    position: relative;
    top: -1px;
}
option {
    font-weight: normal;
}
.nw {
    white-space: nowrap;
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ КНОПОК (НОВАЯ ТЕМА) ===== */
button, input[type="submit"], .button, .btn {
    padding: 6px 14px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}
button:hover, input[type="submit"]:hover, .button:hover, .btn:hover {
    background: #1e1e1e;
}

/* ===== СТИЛИ ШАПКИ (НОВЫЙ СТИЛЬ) ===== */
.site-header {
    display: block;
    width: 100%;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
    background: #fff;
}
.site-header #title {
    padding: 0;
    white-space: nowrap;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #3a3a3a, #1e1e1e);
    color: #fff;
}
.site-header #title2 {
    padding: 12px 15px;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}
.site-header #title2 img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}
.site-header #title2 .title-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    color: inherit;
}
.site-header #title2 .title-sub {
    font-size: 13px;
    font-weight: normal;
    color: inherit;
    opacity: 0.8;
    margin-left: 12px;
}
.season-image-static {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 180px;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.season-image-static img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 50%, black 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.site-header .mm-bar {
    background: #2c2c2c;
    background: linear-gradient(to bottom, #3a3a3a, #1e1e1e);
    border-top: 1px solid #555;
    border-bottom: 1px solid #111;
    padding: 0 10px;
    min-height: 32px;
}
.site-header .mm {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}
.site-header .mm > li {
    position: relative;
    margin: 0;
    padding: 0;
}
.site-header .mm > li > a {
    display: block;
    padding: 6px 14px;
    color: #eee;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
    border-right: 1px solid #444;
    transition: background 0.2s;
}
.site-header .mm > li:last-child > a {
    border-right: none;
}
.site-header .mm > li > a:hover {
    background: #4a4a4a;
    color: #fff;
}
.site-header .mm > li > a .mm-icon {
    margin-right: 4px;
}
.site-header .mm > li > a .mm-label {
    vertical-align: middle;
}
.site-header .mm > li > a .mm-right-icon {
    margin-left: 6px;
}
.site-header .mm .mm-pad-right {
    margin-left: auto;
}
.site-header .mm .mm-pad-right > a {
    border-left: 1px solid #444;
    border-right: none;
}
.site-header .mm > li > div {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f9f9f9;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
}
.site-header .mm > li:hover > div {
    display: block;
}
.site-header .mm-level-2 {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}
.site-header .mm-level-2 li {
    margin: 0;
}
.site-header .mm-level-2 li a {
    display: block;
    padding: 5px 16px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}
.site-header .mm-level-2 li a:hover {
    background: #e0e0e0;
}
.site-header .mm-level-2 li:last-child a {
    border-bottom: none;
}
.site-header .mm-level-2 li a .mm-icon {
    margin-right: 6px;
}
.site-header .unread-badge {
    background: #e53935;
    color: white;
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: top;
}
.site-header .mm > li > a.logout-link {
    color: #ff8a80;
}
.site-header .mm > li > a.logout-link:hover {
    background: #4a2a2a;
}

/* ===== СТИЛИ СТРАНИЦЫ (НОВЫЙ СТИЛЬ) ===== */
#main {
    padding: 20px;
    background-color: #fff;
}
#navbottom {
    margin-top: 30px;
    text-align: center;
}
#footer {
    margin: 10px 20px;
    padding-top: 10px;
    border-top: solid 1px #aaa;
    text-align: left;
}
.p5 {
    padding: 5px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
.sm, th, .th {
    font-size: 11px;
}
th, .th {
    padding: 2px 11px 2px 7px;
    text-align: left;
    background: linear-gradient(to bottom, #3a3a3a, #1e1e1e);
    color: #fff;
    font-weight: bold;
}
.c {
    padding: 2px 9px;
    text-align: center;
}
.s1 {
    background-color: #eeeeee !important;
}
.s11 {
    background-color: #e2e2e2 !important;
}
.f {
    width: 250px;
    border: solid 2px #333;
}
.type1 a {
    color: #333;
}
.type1 a:visited {
    color: #333;
}
.type1 a:visited:hover {
    color: #e00;
}
.country_name {
    padding-top: 3px;
}
.country_name a {
    color: #333;
}
.country_name a:visited {
    color: #333;
}
.country_name a:hover {
    color: #e00;
}
#backgr {
    z-index: 2000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
#navtop_frame {
    background: #eaeaea;
    height: 16px;
}
#navtop, #languages {
    vertical-align: top;
    font-size: 11px;
    padding-top: 1px;
}
#navtop {
    padding-left: 14px;
}
#languages {
    padding-right: 3px;
    float: right;
}
#languages img {
    border: solid 1px #d7d7d7;
    width: 16px;
    height: 10px;
}
.list {
    background-color: #eaeaea;
}
form td {
    padding: 2px;
}

/* Галерея */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}
.photo-link {
    display: inline-block;
    width: 200px;
    margin: 2px;
    flex: 0 0 auto;
    border-radius: 4px;
    overflow: hidden;
}
.photo-link img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.popular-thumb {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.empty-thumb {
    width: 250px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
}
.empty-thumb-small {
    width: 200px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 11px;
}
.photo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

/* Поиск */
.search-container {
    margin-bottom: 20px;
}
.search-row {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}
.search-input {
    flex: 1;
    min-width: 100px;
    padding: 3px;
}
.search-select {
    min-width: 120px;
    padding: 3px;
}
.search-btn {
    padding: 3px 10px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.search-btn:hover {
    background: #1e1e1e;
}

/* Новости */
.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}
.news-title {
    font-weight: bold;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
    color: #333;
}
.news-content {
    display: block;
    margin-bottom: 5px;
}
.news-date {
    color: #666;
    font-size: 0.9em;
}

/* ===== СТИЛИ ДЛЯ vsearch.php ===== */
.results-header {
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 3px solid #333;
}
.results-header h2 {
    color: #333;
    margin: 0;
    font-size: 16px;
}
.search-summary {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}
.no-vehicles {
    text-align: center;
    padding: 30px;
    background: white;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}
.vehicle-tables {
    background: #eaeaea;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 15px;
}
.vehicle-tables table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 10px;
}
.vehicle-tables th {
    background: linear-gradient(to bottom, #3a3a3a, #1e1e1e);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
}
.vehicle-tables td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
}
.vehicle-tables tr:hover {
    background-color: #f5f5f5;
}
.vehicle-number-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.vehicle-number-link:hover {
    color: #e00;
}

/* ===== СТИЛИ ДЛЯ ПРОФИЛЯ (user.php) – НОВЫЙ СТИЛЬ ===== */
.profile-table {
    width: auto;
    table-layout: fixed;
}
.profile-table td:first-child {
    width: 250px;
    max-width: 250px;
}
.profile-table td[valign="top"] {
    vertical-align: top;
}
.profile-sidebar {
    width: 250px;
    max-width: 250px;
    vertical-align: top;
}
.profile-main {
    
    vertical-align: top;
}
.profile-avatar {
    text-align: center;
    margin: 15px 0;
}
.profile-avatar img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: none;
    border-radius: 0;
}
.profile-info {
    margin-top: 15px;
}
.profile-info p {
    margin: 8px 0;
    line-height: 1.4;
}
.profile-info b {
    color: #333;
}
.profile-settings-link {
    margin-top: 20px;
    text-align: center;
}
.profile-settings-link a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.profile-settings-link a:hover {
    color: #e00;
}

/* Галерея фотографий на странице профиля */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}
.photo-link {
    display: block;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.show-all {
    text-align: center;
    margin-top: 20px;
}
.nav-button {
    display: inline-block;
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
}
.nav-button:hover {
    background: #1e1e1e;
    color: #fff;
}
.empty-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 2px dashed #333;
    border-radius: 4px;
    margin: 20px 0;
}
.empty-thumb {
    width: 200px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 11px;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
    text-align: center;
}
.stat-item {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 3px;
}
.stat-label {
    font-size: 11px;
    color: #666;
}
.logout-button, .login-button {
    margin-left: 10px;
    padding: 3px 10px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    background: #2c2c2c;
    border-radius: 4px;
}
.logout-button:hover, .login-button:hover {
    background: #1e1e1e;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ЗАГРУЗКИ (upload.php) – НОВЫЙ СТИЛЬ ===== */
.upload-container {
    max-width: 900px;
    margin: 0 auto;
}
.error-message {
    color: #d32f2f;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}
.success-message {
    color: #2e7d32;
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
}
label {
    display: block;
    margin-top: 10px;
    color: #333;
}
.required {
    color: #f44336;
}
.form-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
.search-section {
    background: #f5f5f5;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}
.search-field {
    flex: 1;
    min-width: 120px;
}
.search-field label {
    margin-top: 0;
    font-size: 11px;
}
.search-results {
    margin: 10px 0;
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 4px;
}
.profile-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.profile-item:hover {
    background: #e8e8e8;
}
.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
}
.attached-profiles {
    margin: 15px 0;
    padding: 15px;
    border: 2px dashed #ccc;
    background: #fafafa;
    min-height: 80px;
    border-radius: 4px;
}
.profile-block {
    background: white;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-info {
    flex: 1;
}
.remove-profile {
    padding: 4px 8px;
    font-size: 10px;
    background: #d32f2f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.remove-profile:hover {
    background: #b71c1c;
}
.no-profiles {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}
small {
    color: #666;
    font-size: 0.9em;
}
.exif-info {
    background: #e8f5e9;
    padding: 8px;
    margin-top: 5px;
    font-size: 0.9em;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}
.exif-warning {
    background: #fff3e0;
    padding: 8px;
    margin-top: 5px;
    font-size: 0.9em;
    color: #ef6c00;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}
.file-info {
    background: #e3f2fd;
    padding: 8px;
    margin-top: 5px;
    font-size: 0.9em;
    color: #0277bd;
    border-left: 4px solid #29b6f6;
    border-radius: 4px;
}
textarea {
    width: 100%;
    height: 80px;
    resize: vertical;
}
.submit-btn {
    padding: 3px 10px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}
.submit-btn:hover {
    background: #1e1e1e;
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.search-btn {
    padding: 3px 10px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
}
.search-btn:hover {
    background: #1e1e1e;
}
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
    .search-field {
        min-width: 100%;
    }
}

/* ===== СТИЛИ ДЛЯ uphoto.php (НОВЫЙ СТИЛЬ) ===== */
.photo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.photo-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #333;
    background: white;
    border-radius: 4px;
}
.photo-img img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #333;
}
.photo-info strong {
    color: #333;
}
.photo-vehicle-info {
    background: #f5f5f5;
    padding: 8px;
    border-left: 3px solid #333;
    margin: 5px 0;
    border-radius: 4px;
}
.photo-vehicle-info div {
    margin-bottom: 3px;
}
.vehicle-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.vehicle-link:hover {
    color: #e00;
}
.open-photo-link {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}
.open-photo-link:hover {
    color: #e00;
}
.empty-thumb {
    width: 250px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
}
.no-photos {
    text-align: center;
    padding: 30px;
    background: white;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    background: white;
    font-size: 12px;
    border-radius: 4px;
}
.pagination .current {
    font-weight: bold;
    background: #2c2c2c;
    color: white;
    border-color: #333;
}
.pagination a:hover {
    background: #e8e8e8;
}

/* ===== СТИЛИ ДЛЯ ucomments.php (НОВЫЙ СТИЛЬ) ===== */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.comment-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 10px;
    background: white;
    border: 1px solid #333;
    border-radius: 4px;
}
.comment-thumb img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.comment-content {
    flex: 1;
}
.comment-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}
.comment-text {
    margin: 5px 0;
    word-wrap: break-word;
}
.comment-text img {
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
}
.comment-attachment img {
    max-width: 300px;
    max-height: 300px;
    border: 1px solid #333;
    margin-top: 5px;
    border-radius: 4px;
}
.photo-info {
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px dotted #333;
    font-size: 12px;
    color: #333;
}
.vehicle-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.vehicle-link:hover {
    color: #e00;
}
.delete-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    margin-top: 5px;
}
.delete-btn:hover {
    text-decoration: underline;
}
.empty-thumb-small {
    width: 200px;
    height: 150px;
    background: #eaeaea;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.no-comments {
    text-align: center;
    padding: 30px;
    background: white;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    background: white;
    font-size: 12px;
    border-radius: 4px;
}
.pagination .current {
    font-weight: bold;
    background: #2c2c2c;
    color: white;
    border-color: #333;
}
.pagination a:hover {
    background: #e8e8e8;
}

/* ===== СТИЛИ ДЛЯ ФОРУМА (topic.php) – НОВЫЙ СТИЛЬ ===== */
.breadcrumbs {
    margin-bottom: 10px;
    font-size: 12px;
}
.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.breadcrumbs a:hover {
    color: #e00;
}
.breadcrumbs span {
    color: #ccc;
}
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 10px;
}
.warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.forum-post {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    display: flex;
    gap: 15px;
}
.post-sidebar {
    width: 150px;
    text-align: center;
}
.post-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.user-title {
    font-size: 11px;
    color: #666;
}
.post-content {
    flex: 1;
}
.post-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}
.post-text img {
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
}
.post-photo {
    max-width: 300px;
    margin-top: 10px;
    cursor: pointer;
    border: 1px solid #333;
    border-radius: 4px;
}
.delete-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}
.button {
    padding: 2px 5px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}
.button:hover {
    background: #1e1e1e;
}
.reply-form {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
}
.reply-form h4 {
    margin-top: 0;
    color: #333;
}
.editor-toolbar {
    background: #e8e8e8;
    border: 1px solid #333;
    border-bottom: none;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 6px 6px 0 0;
}
.editor-toolbar button,
.smiley-btn,
.attachment-label {
    background: white;
    border: 1px solid #333;
    color: #333;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
}
.editor-toolbar button:hover,
.smiley-btn:hover,
.attachment-label:hover {
    background: #2c2c2c;
    color: white;
    border-color: #333;
}
.editor-toolbar .separator {
    width: 1px;
    background: #333;
    opacity: 0.3;
    margin: 0 6px;
    height: 24px;
}
#reply_text {
    width: 100%;
    border: 1px solid #333;
    border-top: none;
    padding: 12px;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    min-height: 180px;
    resize: vertical;
    background-color: #fff;
    border-radius: 0 0 6px 6px;
}
#reply_text:focus {
    outline: none;
    border-color: #333;
}
.char-counter {
    background: #f0f0f0;
    border: 1px solid #333;
    border-top: none;
    padding: 5px 12px;
    text-align: right;
    font-size: 11px;
    color: #555;
    border-radius: 0 0 6px 6px;
}
.smiley-panel {
    background: white;
    border: 1px solid #333;
    padding: 12px;
    margin-top: 12px;
    border-radius: 6px;
}
.smiley-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}
.smiley-item img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.1s;
}
.smiley-item img:hover {
    transform: scale(1.15);
}
#smileySearch {
    border: 1px solid #333;
    padding: 6px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
}
.photo-preview {
    margin-top: 10px;
}
.photo-preview img {
    max-width: 150px;
    border: 1px solid #333;
    border-radius: 4px;
}
.remove-photo {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
    border-radius: 4px;
}
.remove-photo:hover {
    background: #b71c1c;
}
.submit-btn {
    padding: 6px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}
.submit-btn:hover {
    background: #1e1e1e;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    background: #eaeaea;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
}
.pagination .current {
    background: #2c2c2c;
    color: white;
    border-color: #333;
}
.pagination a:hover {
    background: #ccc;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ НАСТРОЕК (settings.php) – НОВЫЙ СТИЛЬ ===== */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
}
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.settings-card {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 6px;
}
.settings-card h3 {
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    font-size: 14px;
    font-weight: bold;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 6px;
    font-size: 13px;
    border: 1px solid #bbb;
    box-sizing: border-box;
    background: #fff;
    border-radius: 4px;
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.form-group .readonly-field {
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    cursor: not-allowed;
}
.avatar-preview {
    text-align: center;
    margin: 10px 0;
}
.avatar-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: none;
}
.form-actions {
    margin-top: 15px;
    text-align: center;
}
.btn-primary {
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    width: 100%;
    border-radius: 4px;
}
.btn-primary:hover {
    background: #1e1e1e;
}
.pending-email {
    background: #f5f5f5;
    color: #333;
    padding: 10px;
    border-left: 4px solid #333;
    margin: 10px 0;
    font-size: 12px;
    border-radius: 4px;
}
.message {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}
.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #4caf50;
}
.error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #f44336;
}
small {
    color: #666;
    font-size: 11px;
    display: block;
    margin-top: 2px;
}
.profile-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.profile-link a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.profile-link a:hover {
    color: #e00;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПОИСКА (search.php) – НОВЫЙ СТИЛЬ ===== */
.search-container {
    max-width: 100%;
}
.search-form {
    margin-bottom: 20px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
}
.search-table {
    width: 100%;
}
.search-table td {
    padding: 4px;
}
.search-label {
    width: 150px;
    font-weight: bold;
    color: #333;
}
.search-input,
.search-select {
    width: 100%;
    max-width: 300px;
    padding: 3px;
    border: 1px solid #bbb;
    background: #fff;
    border-radius: 4px;
}
.search-actions {
    text-align: left;
    padding-top: 10px;
}
.btn-search {
    padding: 4px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}
.btn-search:hover {
    background: #1e1e1e;
}
.search-hint {
    color: #666;
    font-size: 11px;
}
.no-photos {
    text-align: center;
    padding: 30px;
    background: white;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}
.photo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.photo-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #333;
    background: white;
    border-radius: 4px;
}
.photo-img img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #333;
}
.photo-info strong {
    color: #333;
}
.photo-vehicle-info {
    background: #f5f5f5;
    padding: 8px;
    border-left: 3px solid #333;
    margin: 5px 0;
    border-radius: 4px;
}
.vehicle-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.vehicle-link:hover {
    color: #e00;
}
.user-link {
    color: #333;
    text-decoration: none;
}
.user-link:hover {
    color: #e00;
}
.open-photo-link {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.open-photo-link:hover {
    color: #e00;
}
.empty-thumb {
    width: 250px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    background: white;
    border-radius: 4px;
}
.pagination .current {
    font-weight: bold;
    background: #2c2c2c;
    color: white;
    border-color: #333;
}
.pagination a:hover {
    background: #e8e8e8;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПРАВИЛ (rules.php) – НОВЫЙ СТИЛЬ ===== */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
}
.rules-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}
.rules-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px solid #333;
    border-radius: 4px;
}
.rules-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.rule-item {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #333;
}
.warning-text {
    color: #d32f2f;
    font-weight: bold;
}
.info-text {
    color: #2e7d32;
}
.rules-note {
    background-color: #f5f5f5;
    border-color: #333;
}
.rules-note p {
    margin-bottom: 0;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ МАРШРУТА (rsearch.php) – НОВЫЙ СТИЛЬ ===== */
.route-container {
    max-width: 100%;
}
.photo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.photo-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #333;
    background: white;
    border-radius: 4px;
}
.photo-img img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #333;
}
.photo-info strong {
    color: #333;
}
.photo-vehicle-info {
    background: #f5f5f5;
    padding: 8px;
    border-left: 3px solid #333;
    margin: 5px 0;
    border-radius: 4px;
}
.photo-vehicle-info div {
    margin-bottom: 3px;
}
.vehicle-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.vehicle-link:hover {
    color: #e00;
}
.open-photo-link {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}
.open-photo-link:hover {
    color: #e00;
}
.empty-thumb {
    width: 250px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
}
.no-photos {
    text-align: center;
    padding: 30px;
    background: white;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ СБРОСА ПАРОЛЯ (reset_password.php) – НОВЫЙ СТИЛЬ ===== */
.reset-container {
    max-width: 500px;
    margin: 0 auto;
}
.reset-container .th {
    margin-top: 20px;
}
.reset-container .p5 {
    background-color: #f9f9f9;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}
.reset-container p {
    color: #333;
    margin-bottom: 15px;
}
.button-container {
    margin-top: 20px;
    text-align: center;
}
.btn-reset {
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    border-radius: 4px;
}
.btn-reset:hover {
    background: #1e1e1e;
}
.success-message {
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.links {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.links a {
    color: #333;
    margin: 0 10px;
}
.links a:hover {
    color: #e00;
}
@media (max-width: 768px) {
    .reset-container {
        max-width: 100%;
        padding: 10px;
    }
    .links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .links a {
        margin: 5px 0;
    }
}

/* ===== СТИЛИ ДЛЯ REGISTER.PHP ===== */
.register-container {
    max-width: 400px;
    margin: 0 auto;
}
.register-container .p5 {
    background-color: #f9f9f9;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 4px 4px;
}
.register-form .form-group {
    margin-bottom: 15px;
}
.register-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}
.register-form .form-group input[type="text"],
.register-form .form-group input[type="email"],
.register-form .form-group input[type="password"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #bbb;
    background: #fff;
    border-radius: 4px;
}
.register-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}
.register-form .checkbox-group input[type="checkbox"] {
    width: auto;
}
.btn-primary {
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    border-radius: 4px;
}
.btn-primary:hover {
    background: #1e1e1e;
}
.message {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    border-radius: 4px;
}
.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #4caf50;
}
.message.error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #f44336;
}
.links {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.links a {
    color: #333;
}
.links a:hover {
    color: #e00;
}

/* ===== СТИЛИ ДЛЯ REDACTOR.PHP ===== */
.redactor-info {
    background: #f5f5f5 !important;
    border: 1px solid #333 !important;
    padding: 10px !important;
    margin-bottom: 20px !important;
    border-radius: 4px !important;
}
.city-selector label {
    font-weight: bold;
    color: #333;
}
.city-selector select {
    padding: 4px 8px;
    border: 1px solid #333;
    background: #fff;
    border-radius: 4px;
}
.btn-secondary {
    padding: 4px 12px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.btn-secondary:hover {
    background: #1e1e1e;
}
.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.admin-module {
    border: 1px solid #333;
    background: white;
    margin-bottom: 10px;
    border-radius: 4px;
}
.admin-module-header {
    background: #2c2c2c;
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}
.admin-module-header .collapse-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.admin-module-header .collapse-toggle:hover {
    background: rgba(255,255,255,0.3);
}
.admin-module-content {
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
}
.admin-module.collapsed .admin-module-content {
    max-height: 0;
    padding: 0 15px;
    overflow: hidden;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: white;
}
.admin-table th {
    background: #2c2c2c;
    color: white;
    padding: 8px;
    text-align: left;
    font-size: 12px;
    border: 1px solid #333;
}
.admin-table td {
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    vertical-align: top;
}
.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.admin-table tr:hover {
    background-color: #f1f1f1;
}
.btn-approve {
    padding: 4px 12px;
    background: #2e7d32;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.btn-approve:hover {
    background: #1b5e20;
}
.btn-reject {
    padding: 4px 12px;
    background: #d32f2f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.btn-reject:hover {
    background: #b71c1c;
}
.no-items {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    border: 1px dashed #333;
    border-radius: 4px;
    margin: 10px 0;
}
.ajax-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3s forwards;
    max-width: 300px;
    border-radius: 4px;
}
.ajax-notification.success {
    background: #2e7d32;
    border-left: 4px solid #1b5e20;
}
.ajax-notification.error {
    background: #d32f2f;
    border-left: 4px solid #b71c1c;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===== СТИЛИ ДЛЯ PROFILE.PHP ===== */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.profile-table tr:nth-child(even) {
    background-color: #f5f5f5;
}
.profile-table tr:nth-child(odd) {
    background-color: #ffffff;
}
.profile-table td {
    padding: 8px;
    border: 1px solid #ddd;
}
.profile-table td:first-child {
    font-weight: bold;
    width: 30%;
    background-color: #f0f0f0;
}
.status-badge {
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
}
.editable-field {
    position: relative;
}
.edit-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.2s;
    vertical-align: middle;
}
.edit-icon:hover {
    opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
    .edit-icon {
        opacity: 0;
    }
    .editable-field:hover .edit-icon,
    .edit-icon:hover {
        opacity: 0.7;
    }
}
@media (hover: none) and (pointer: coarse) {
    .edit-icon {
        opacity: 0.7;
    }
}
.photo-card {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.photo-card-image {
    flex: 0 0 200px;
    margin-right: 10px;
}
.photo-card-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.photo-card-info {
    flex: 1;
}
.empty-thumb-small {
    width: 200px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 11px;
}
@media (max-width: 768px) {
    .photo-card {
        flex-direction: column;
    }
    .photo-card-image {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .photo-card-image img {
        width: 100%;
        height: 200px;
    }
}

/* ===== СТИЛИ ДЛЯ new_topic.php И photo.php (НОВЫЙ СТИЛЬ) ===== */
.breadcrumbs {
    margin-bottom: 10px;
    font-size: 12px;
}
.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.breadcrumbs a:hover {
    color: #e00;
}
.breadcrumbs span {
    color: #ccc;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 10px;
}
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
}
.ban {
    color: #FF0000;
    font-weight: bold;
    font-size: 11px;
}

/* Форма новой темы */
.new-topic-form .form-group {
    margin-bottom: 15px;
}
.new-topic-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.new-topic-form .form-control {
    width: 100%;
    padding: 6px;
    border: 1px solid #bbb;
    background: #fff;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
    border-radius: 4px;
}
.new-topic-form textarea.form-control {
    resize: vertical;
}
.new-topic-form .form-actions {
    margin-top: 15px;
}

/* Редактор сообщения (новый стиль) */
.editor-toolbar {
    background: #e8e8e8;
    border: 1px solid #333;
    border-bottom: none;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 6px 6px 0 0;
}
.editor-toolbar button,
.smiley-btn,
.attachment-label {
    background: white;
    border: 1px solid #333;
    color: #333;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
}
.editor-toolbar button:hover,
.smiley-btn:hover,
.attachment-label:hover {
    background: #2c2c2c;
    color: white;
    border-color: #333;
}
.editor-toolbar .separator {
    width: 1px;
    background: #333;
    opacity: 0.3;
    margin: 0 6px;
    height: 24px;
}
#forum_content {
    width: 100%;
    border: 1px solid #333;
    border-top: none;
    padding: 12px;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    min-height: 180px;
    resize: vertical;
    background-color: #fff;
    border-radius: 0 0 6px 6px;
}
#forum_content:focus {
    outline: none;
    border-color: #333;
}
.char-counter {
    background: #f0f0f0;
    border: 1px solid #333;
    border-top: none;
    padding: 5px 12px;
    text-align: right;
    font-size: 11px;
    color: #555;
    border-radius: 0 0 6px 6px;
}
.smiley-panel {
    background: white;
    border: 1px solid #333;
    padding: 12px;
    margin-top: 12px;
    border-radius: 6px;
}
.smiley-panel .smiley-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.smiley-panel .smiley-header h4 {
    margin: 0;
}
.smiley-panel .close-smiley {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.smiley-search {
    border: 1px solid #333;
    padding: 6px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
}
.smiley-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}
.smiley-item img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.1s;
}
.smiley-item img:hover {
    transform: scale(1.15);
}
.photo-preview {
    margin-top: 10px;
}
.photo-preview img {
    max-width: 150px;
    border: 1px solid #333;
    border-radius: 4px;
}
.remove-photo {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    margin-left: 5px;
    border-radius: 4px;
}
.remove-photo:hover {
    background: #b71c1c;
}
.btn-primary {
    padding: 6px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}
.btn-primary:hover {
    background: #1e1e1e;
}

/* Стили для photo.php (новый стиль) */
.photo-full-width {
    text-align: center;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.photo-full-width img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid #333;
    cursor: zoom-in;
    object-fit: contain;
    border-radius: 4px;
}
.two-columns-under-photo {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}
.left-column-info {
    width: 200px;
    flex-shrink: 0;
}
.right-column-content {
    flex: 1;
}
.photo-left-box {
    background-color: #f5f5f5;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.photo-left-box h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.photo-left-box p {
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.rating-total {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}
.rating-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rating-btn {
    width: 100%;
    padding: 5px 10px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    border-radius: 4px;
}
.rating-btn:hover:not(:disabled) {
    background: #1e1e1e;
}
.rating-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.photo-description {
    margin: 15px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-left: 3px solid #333;
    border-radius: 4px;
}
.photo-meta {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #666;
}
#pmain {
    background-color: #fff;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.photo-location {
    margin: 12px 0 5px;
    font-size: 14px;
}
.info-location {
    margin: 5px 0;
}
.comments-section {
    margin-top: 20px;
}
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #bbb;
    resize: vertical;
    min-height: 60px;
    border-radius: 4px;
}
.comment-submit {
    margin-top: 10px;
    padding: 6px 15px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
.comment-submit:hover {
    background: #1e1e1e;
}
.comment-list {
    margin-top: 15px;
}
.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 12px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-content {
    flex: 1;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.comment-author {
    font-weight: bold;
    color: #333;
}
.comment-date {
    color: #666;
    font-size: 12px;
}
.comment-text img {
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
}
.comment-photo {
    max-width: 300px;
    max-height: 300px;
    margin-top: 10px;
    cursor: pointer;
    border: 1px solid #333;
    border-radius: 4px;
}
.comment-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.reply-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    text-decoration: underline;
}
.reply-btn:hover {
    color: #e00;
}
.delete-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 12px;
}
.delete-btn:hover {
    text-decoration: underline;
}
.file-input-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}
.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.file-input-label {
    display: inline-block;
    padding: 5px 10px;
    background: #2c2c2c;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
}
.login-prompt {
    text-align: center;
    padding: 10px;
    background: #f1f3f5;
    border-radius: 4px;
}
.login-prompt a {
    color: #333;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #c00;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
}
.reply-indicator {
    background: #e3f2fd;
    padding: 8px 12px;
    margin-bottom: 8px;
    display: none;
    border-radius: 4px;
}
.reply-indicator .cancel-reply {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 10px;
}
.reply-indicator .cancel-reply:hover {
    color: #b71c1c;
}
.comment-item.highlight {
    background-color: #ffff99;
    transition: background-color 0.5s ease;
}
.reply-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.reply-info a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.reply-info a:hover {
    text-decoration: underline;
    color: #e00;
}
.smiley-button-container {
    margin: 8px 0;
}
.smiley-button {
    background: #2c2c2c;
    border: 1px solid #333;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 8px 0;
    color: #fff;
    border-radius: 4px;
}
.smiley-button:hover {
    background: #1e1e1e;
}

@media (max-width: 768px) {
    .two-columns-under-photo {
        flex-direction: column;
    }
    .left-column-info {
        width: 100%;
    }
}

/* ===== СТИЛИ ДЛЯ my_photos.php (НОВЫЙ) ===== */
.my-photos-container {
    max-width: 100%;
}
.photos-stats {
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #333;
    text-align: center;
    color: #333;
    border-radius: 4px;
}
.empty-photos {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 1px solid #333;
    margin: 20px 0;
    border-radius: 4px;
}
.empty-photos p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}
.btn-upload {
    display: inline-block;
    padding: 6px 12px;
    background: #2c2c2c;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
}
.btn-upload:hover {
    background: #1e1e1e;
    color: #fff;
}
.my-photos-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 12px;
}
.my-photos-table th {
    background: #2c2c2c;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #333;
}
.my-photos-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.my-photos-table tr:hover {
    background-color: #f5f5f5;
}
.photo-thumb {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border: 1px solid #333;
    cursor: pointer;
    border-radius: 4px;
}
.empty-thumb {
    width: 100px;
    height: 75px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 4px;
    color: #666;
    font-size: 11px;
}
.status-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
}
.status-approved {
    color: #4caf50;
}
.status-pending {
    color: #ff9800;
}
.status-rejected {
    color: #f44336;
}
.rejection-reason {
    font-size: 11px;
    color: #d32f2f;
}
.rejection-reason.muted {
    color: #999;
    font-style: italic;
}
.muted {
    color: #999;
    font-style: italic;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
}
.pagination a {
    background: #eaeaea;
    color: #333;
    border: 1px solid #333;
    text-decoration: none;
}
.pagination a:hover {
    background: #ccc;
}
.pagination .current {
    background: #2c2c2c;
    color: #fff;
    border: 1px solid #333;
}
.pagination .disabled {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #ddd;
    cursor: not-allowed;
}

/* ===== СТИЛИ ДЛЯ msearch.php (НОВЫЙ) ===== */
.page-header {
    margin-bottom: 20px;
}
.page-title {
    color: #333;
    margin: 0;
    font-size: 18px;
}
.city-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.city-link:hover {
    color: #e00;
}
.vehicle-number-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.vehicle-number-link:hover {
    color: #e00;
}
.count-badge {
    background: #2c2c2c;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: 5px;
    border-radius: 10px;
}
.count-badge.active-count {
    background: #4caf50;
}
.vehicle-tables {
    background: #eaeaea;
    padding: 10px;
    border: 1px solid #333;
    margin-bottom: 15px;
    border-radius: 4px;
}
.vehicle-tables table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 10px;
}
.vehicle-tables th {
    background: #2c2c2c;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-weight: bold;
}
.vehicle-tables td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}
.vehicle-tables tr:hover {
    background-color: #f5f5f5;
}
.no-vehicles {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: white;
    border: 1px dashed #333;
    border-radius: 4px;
}

/* ===== СТИЛИ ДЛЯ ЛИЧНЫХ СООБЩЕНИЙ (НОВЫЙ) ===== */
.messages-container {
    max-width: 900px;
    margin: 0 auto;
}
.btn-send {
    display: inline-block;
    padding: 8px 16px;
    background: #2c2c2c;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: bold;
    border-radius: 4px;
}
.btn-send:hover {
    background: #1e1e1e;
}
.no-dialogs {
    color: #666;
    font-style: italic;
}
.dialog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.dialog-item {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 10px;
    transition: 0.2s;
    border-radius: 4px;
}
.dialog-item:hover {
    background: #e9e9e9;
}
.dialog-item.dialog-unread {
    background: #e8e8e8;
    border-left: 4px solid #333;
}
.dialog-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    float: left;
    margin-right: 15px;
    border: none;
    border-radius: 50%;
}
.dialog-info {
    overflow: hidden;
}
.dialog-username {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}
.dialog-date {
    float: right;
    font-size: 11px;
    color: #777;
}
.dialog-last {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}
.badge-unread {
    background: #e53935;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 10px;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ===== СТИЛИ ДЛЯ ПРОСМОТРА ДИАЛОГА (НОВЫЙ) ===== */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
}
.message {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 4px;
}
.message.message-mine {
    background: #e8e8e8;
    border-left: 4px solid #333;
}
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}
.message-subject {
    font-weight: bold;
    margin-bottom: 6px;
}
.message-text {
    line-height: 1.4;
}
.reply-form {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}
.reply-form h3 {
    margin-top: 0;
    color: #333;
}
.reply-subject {
    width: 100%;
    padding: 6px;
    border: 1px solid #bbb;
    margin-bottom: 10px;
    box-sizing: border-box;
    border-radius: 4px;
}
.reply-text {
    width: 100%;
    height: 100px;
    padding: 8px;
    border: 1px solid #bbb;
    box-sizing: border-box;
    resize: vertical;
    border-radius: 4px;
}
.btn-reply {
    padding: 8px 16px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    border-radius: 4px;
}
.btn-reply:hover {
    background: #1e1e1e;
}

/* ===== СТИЛИ ДЛЯ ОТПРАВКИ СООБЩЕНИЙ (НОВЫЙ) ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}
.message-error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.message-success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.send-form .form-group {
    margin-bottom: 15px;
}
.send-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
.send-form .form-input,
.send-form .form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #bbb;
    box-sizing: border-box;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    border-radius: 4px;
}
.send-form .form-textarea {
    height: 150px;
    resize: vertical;
}
.btn-submit {
    padding: 8px 16px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}
.btn-submit:hover {
    background: #1e1e1e;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ВХОДА (НОВЫЙ) ===== */
.login-container {
    max-width: 400px;
    margin: 0 auto;
}
.login-container .p5 {
    background-color: #f9f9f9;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 4px 4px;
}
.login-form .form-group {
    margin-bottom: 15px;
}
.login-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
.login-form .form-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #bbb;
    background: #fff;
    border-radius: 4px;
}
.login-form .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-form .remember-me label {
    font-weight: normal;
}
.login-form .btn-primary {
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    border-radius: 4px;
}
.login-form .btn-primary:hover {
    background: #1e1e1e;
}
.message-error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.message-success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.resend-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.resend-link:hover {
    color: #e00;
}
.links {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.links a {
    color: #333;
    margin: 0 10px;
}
.links a:hover {
    color: #e00;
}

/* ===== СТИЛИ ДЛЯ ФОРУМОВ (НОВЫЙ) ===== */
.forum-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.forum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #333;
    transition: background 0.2s;
    border-radius: 4px;
}
.forum-item:hover {
    background: #f0f0f0;
}
.forum-info {
    flex: 1;
}
.forum-title {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}
.forum-title:hover {
    color: #e00;
}
.forum-desc {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}
.forum-stats {
    text-align: right;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    margin-left: 15px;
}
.forum-stats div {
    margin-bottom: 2px;
}
.btn-admin-categories {
    display: inline-block;
    padding: 6px 14px;
    background: #2c2c2c;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
}
.btn-admin-categories:hover {
    background: #1e1e1e;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ФОРУМА (НОВЫЙ) ===== */
.forum-actions {
    margin-bottom: 15px;
    text-align: right;
}
.btn-new-topic {
    display: inline-block;
    padding: 6px 14px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
}
.btn-new-topic:hover {
    background: #1e1e1e;
}
.btn-new-topic.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}
.forum-topic-table {
    width: 100%;
    border-collapse: collapse;
}
.forum-topic-table th {
    text-align: left;
    padding: 8px;
    background: #2c2c2c;
    color: #fff;
}
.forum-topic-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}
.forum-topic-table tr:hover {
    background-color: #f5f5f5;
}
.topic-title {
    font-weight: bold;
    font-size: 14px;
}
.topic-link {
    color: #333;
    text-decoration: none;
}
.topic-link:hover {
    color: #e00;
}
.topic-meta {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.topic-stats {
    text-align: center;
    width: 80px;
}
.topic-last-post {
    width: 180px;
    font-size: 12px;
}
.no-topics {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    background: #eaeaea;
    color: #333;
    border: 1px solid #333;
    text-decoration: none;
    border-radius: 4px;
}
.pagination a:hover {
    background: #ccc;
}
.pagination .current {
    background: #2c2c2c;
    color: #fff;
    border-color: #333;
}

/* ===== СТИЛИ ДЛЯ ВОССТАНОВЛЕНИЯ ПАРОЛЯ (НОВЫЙ) ===== */
.forgot-container {
    max-width: 500px;
    margin: 0 auto;
}
.forgot-container .p5 {
    background-color: #f9f9f9;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 4px 4px;
}
.forgot-form .form-group {
    margin-bottom: 15px;
}
.forgot-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.forgot-form .form-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #bbb;
    background: #fff;
    box-sizing: border-box;
    border-radius: 4px;
}
.forgot-form .form-actions {
    margin-top: 20px;
    text-align: center;
}
.btn-submit {
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    border-radius: 4px;
}
.btn-submit:hover {
    background: #1e1e1e;
}
.message-success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.message-error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.links {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.links a {
    color: #333;
    margin: 0 10px;
}
.links a:hover {
    color: #e00;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ РЕДАКТИРОВАНИЯ (НОВЫЙ) ===== */
.edit-vehicle-container {
    max-width: 800px;
    margin: 0 auto;
}
.edit-vehicle-container .p5 {
    background-color: #f9f9f9;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 4px 4px;
}
.edit-section {
    margin-bottom: 20px;
}
.edit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-action {
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}
.btn-action:hover {
    background: #1e1e1e;
}
.edit-form .form-group {
    margin-bottom: 15px;
}
.edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.edit-form .form-input,
.edit-form .form-select,
.edit-form .form-textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #bbb;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    border-radius: 4px;
}
.edit-form .form-input-readonly {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    background: #f0f0f0;
    color: #666;
    box-sizing: border-box;
    border-radius: 4px;
}
.edit-form .form-textarea {
    height: 80px;
    resize: vertical;
}
.edit-form .form-actions {
    margin-top: 20px;
    text-align: center;
}
.btn-submit {
    padding: 8px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}
.btn-submit:hover {
    background: #1e1e1e;
}
.message-success {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.message-error-list {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    list-style: none;
    margin-left: 0;
    padding-left: 10px;
}
.message-error-list li {
    margin-bottom: 5px;
}
.message-info {
    background: #f5f5f5;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 10px;
    margin-top: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}
.vehicle-item {
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    background: #fff;
    border-radius: 4px;
}
.vehicle-item:hover {
    background: #e8e8e8;
    border-color: #333;
}
.vehicle-item.selected {
    background: #ccc;
    border-color: #333;
}
small {
    color: #666;
    font-size: 0.9em;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ГОРОДА (НОВЫЙ) ===== */
.city-photos-container {
    max-width: 100%;
}
.photos-stats {
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #333;
    font-size: 12px;
    color: #333;
    text-align: center;
    border-radius: 4px;
}
.photos-stats .stat-number {
    font-weight: bold;
    color: #333;
}
.photo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.photo-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #333;
    background: #fff;
    border-radius: 4px;
}
.photo-img img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #333;
}
.photo-info strong {
    color: #333;
}
.photo-info div {
    margin-bottom: 3px;
}
.photo-vehicle-info {
    background: #f5f5f5;
    padding: 8px;
    border-left: 3px solid #333;
    margin: 5px 0;
    border-radius: 4px;
}
.photo-vehicle-info div {
    margin-bottom: 3px;
}
.vehicle-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
.vehicle-link:hover {
    color: #e00;
}
.open-photo-link {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}
.open-photo-link:hover {
    color: #e00;
}
.empty-thumb {
    width: 250px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
}
.no-photos {
    text-align: center;
    padding: 30px;
    background: #fff;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    background: #fff;
    font-size: 12px;
    border-radius: 4px;
}
.pagination .current {
    font-weight: bold;
    background: #2c2c2c;
    color: #fff;
    border-color: #333;
}
.pagination a:hover {
    background: #e8e8e8;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПРЕДПРИЯТИЯ (НОВЫЙ) ===== */
.company-container {
    max-width: 1000px;
    margin: 0 auto;
}
.company-content {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}
.company-section {
    flex: 2;
    background-color: #f5f5f5;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 4px;
}
.company-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}
.company-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.company-info {
    margin-bottom: 10px;
    color: #333;
}
.company-info strong {
    color: #333;
}
.status-symbol {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    margin-right: 8px;
    color: #333;
}
.vehicle-type-section {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.vehicle-type-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 13px;
}
.vehicle-type-section h5 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    font-size: 12px;
}
.vehicle-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.vehicle-table th {
    background: #2c2c2c;
    color: #fff;
    padding: 8px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
}
.vehicle-table td {
    padding: 8px;
    border: 1px solid #333;
}
.vehicle-number {
    color: #333;
    font-weight: bold;
}
.vehicle-number:hover {
    color: #e00;
}
.vehicle-model {
    color: #333;
}
.vehicle-year {
    color: #666;
    text-align: center;
}
.vehicle-status {
    color: #666;
}
.no-vehicles {
    color: #666;
    font-style: italic;
    padding: 10px;
    text-align: center;
}
.table-section-title {
    color: #333;
    font-size: 11px;
    margin: 10px 0 5px;
    padding: 5px 8px;
    background: #e8e8e8;
    border-left: 3px solid #333;
    border-radius: 4px;
}
.other-vehicles-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px dashed #333;
}
.other-vehicles-section .table-section-title {
    background: #f0f0f0;
    border-left-color: #d32f2f;
    color: #d32f2f;
}
@media (max-width: 768px) {
    .company-content {
        flex-direction: column;
    }
    .vehicle-table {
        font-size: 12px;
    }
    .vehicle-table th,
    .vehicle-table td {
        padding: 6px;
    }
}

/* ===== СТИЛИ ДЛЯ ВСЕХ КОММЕНТАРИЕВ (НОВЫЙ) ===== */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.comment-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: #fff;
    border: 1px solid #333;
    border-radius: 4px;
}
.comment-thumb {
    flex-shrink: 0;
}
.comment-thumb img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #333;
    border-radius: 4px;
}
.empty-thumb-small {
    width: 200px;
    height: 150px;
    background: #eaeaea;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}
.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
}
.comment-author a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.comment-author a:hover {
    color: #e00;
}
.comment-date {
    color: #666;
}
.comment-text {
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}
.comment-text img {
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
}
.comment-attachment {
    margin: 5px 0;
}
.comment-attachment img {
    max-width: 300px;
    max-height: 300px;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
}
.comment-photo-info {
    background: #f5f5f5;
    padding: 8px 10px;
    border-left: 3px solid #333;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}
.photo-location {
    font-weight: bold;
}
.photo-date {
    color: #666;
}
.photo-vehicles {
    margin-top: 3px;
}
.photo-vehicles .vehicle-link {
    color: #333;
    text-decoration: none;
}
.photo-vehicles .vehicle-link:hover {
    color: #e00;
}
.comment-actions {
    margin-top: 4px;
}
.delete-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}
.delete-btn:hover {
    text-decoration: underline;
}
.no-comments {
    text-align: center;
    padding: 30px;
    background: #fff;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a, .pagination span {
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    background: #fff;
    font-size: 12px;
    border-radius: 4px;
}
.pagination .current {
    font-weight: bold;
    background: #2c2c2c;
    color: #fff;
    border-color: #333;
}
.pagination a:hover {
    background: #e8e8e8;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ГОРОДА (НОВЫЙ) ===== */
.city-main-table {
    width: 1000px;
    margin: 20px auto;
    background: #eaeaea;
    border-collapse: collapse;
}
.city-main-column {
    padding: 20px;
    vertical-align: top;
}
.city-title {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #333;
}
.city-subtitle {
    font-size: 14px;
    margin: 15px 0 5px 0;
    color: #333;
}
.city-redactors {
    margin-bottom: 15px;
    font-size: 13px;
    color: #333;
}
.city-link {
    color: #333;
    text-decoration: none;
}
.city-link:hover {
    color: #e00;
}
.city-inner-table {
    width: 100%;
    border-collapse: collapse;
}
.city-left-col {
    width: 100%;
    vertical-align: top;
}
.city-right-col {
    width: 264px;
    padding-left: 20px;
    vertical-align: top;
}
.city-company-block {
    background: #f5f5f5;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 4px;
}
.city-company-table {
    width: 100%;
    border-collapse: collapse;
}
.city-row-even {
    background: #f9f9f9;
}
.city-row-odd {
    background: #ffffff;
}
.city-status-cell {
    text-align: center;
    vertical-align: middle;
    width: 30px;
    font-size: 18px;
}
.status-active {
    color: #28a745;
}
.status-inactive {
    color: #dc3545;
}
.city-company-name {
    padding: 5px 7px;
}
.city-company-routes {
    font-size: 11px;
    color: #666;
}
.city-company-link {
    text-align: right;
    padding: 7px 11px 7px 7px;
    white-space: nowrap;
    vertical-align: top;
}
.city-no-data {
    color: #666;
}
.city-galleries-block {
    background: #f5f5f5;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.city-admin-btn {
    padding: 4px 12px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}
.city-admin-btn:hover {
    background: #1e1e1e;
}
.city-photo-block {
    margin-bottom: 20px;
}
.city-photo-link {
    display: inline-block;
    margin: 0 2px 5px 0;
    position: relative;
}
.city-photo-link img {
    border: 2px solid #333;
    background: #f0f0f0;
    border-radius: 4px;
}
.city-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    background: #eee;
    color: #666;
    font-size: 12px;
    width: 250px;
    height: 150px;
    border-radius: 4px;
}
@media (max-width: 1000px) {
    .city-main-table {
        width: 100%;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ОБРАЩЕНИЯ (НОВЫЙ) ===== */
.ask-container {
    max-width: 800px;
    margin: 0 auto;
}
.message-error {
    color: #d32f2f;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}
.message-success {
    color: #2e7d32;
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
}
.ask-form {
    background: #f5f5f5;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #333;
    border-radius: 4px;
}
.form-group {
    margin-bottom: 15px;
}
.form-label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #bbb;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    border-radius: 4px;
}
.form-textarea {
    min-height: 150px;
    resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #333;
}
.form-actions {
    margin-top: 15px;
    text-align: center;
}
.btn-submit {
    padding: 6px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}
.btn-submit:hover {
    background: #1e1e1e;
}
.info-section {
    background: #f5f5f5;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #333;
    border-radius: 4px;
}
.info-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
}
.info-section ul {
    padding-left: 20px;
    margin: 10px 0;
}
.info-section li {
    margin-bottom: 5px;
    line-height: 1.5;
    color: #333;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ "О САЙТЕ" (НОВЫЙ) ===== */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}
.about-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}
.about-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px solid #333;
    border-radius: 4px;
}
.about-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.about-section p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
}
.about-section ul {
    padding-left: 20px;
    margin: 10px 0;
}
.about-section li {
    margin-bottom: 5px;
    line-height: 1.5;
    color: #333;
}