/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tahoma', 'Verdana', sans-serif;
    font-size: 13px;
}

body {
    background-color: #edeef0;
    color: #000;
    line-height: 1.4;
}

/* Хедер */
.header {
    background-color: #507299;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 11px;
    color: #d0d7e0;
}

.search {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input {
    flex-grow: 1;
    padding: 5px 10px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 13px;
}

.search-btn {
    background-color: #305075;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

.user-name {
    font-weight: bold;
}

.logout {
    color: #d0d7e0;
    cursor: pointer;
    font-size: 12px;
}

.logout:hover {
    text-decoration: underline;
}

/* Главное меню */
.main-menu {
    background-color: #305075;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-item {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    border-right: 1px solid #406286;
    font-size: 13px;
}

.menu-item:last-child {
    border-right: none;
}

.menu-item:hover {
    background-color: #406286;
}

.menu-item.active {
    background-color: #3c5a7a;
    font-weight: bold;
}

.menu-item i {
    margin-right: 5px;
}

.msg-counter {
    background-color: #ff3341;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    margin-left: 5px;
}

/* Контейнер */
.container {
    max-width: 960px;
    margin: 15px auto;
    display: flex;
    gap: 15px;
}

/* Левая колонка */
.left-column {
    width: 200px;
}

.profile-card {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.profile-header {
    background-color: #507299;
    color: white;
    padding: 15px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 10px;
}

.profile-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.profile-status {
    font-size: 12px;
    font-style: italic;
    color: #d0d7e0;
}

.profile-info {
    padding: 15px;
}

.info-row {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.info-label {
    color: #666;
    font-weight: bold;
}

.info-value {
    color: #2a5885;
    text-align: right;
    max-width: 120px;
}

.profile-stats {
    display: flex;
    border-top: 1px solid #e7e8ec;
    padding: 10px 0;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 5px;
}

.stat-number {
    font-weight: bold;
    color: #2a5885;
    font-size: 16px;
}

.stat-label {
    color: #666;
    font-size: 11px;
    margin-top: 3px;
}

/* Виджеты */
.friends-widget, .audio-widget, .stats-widget {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 15px;
}

.widget-title {
    font-weight: bold;
    color: #2a5885;
    margin-bottom: 12px;
    font-size: 14px;
}

.all-link {
    color: #999;
    font-weight: normal;
    font-size: 12px;
    float: right;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.friend-item {
    text-align: center;
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.friend-name {
    font-size: 11px;
    color: #2a5885;
    word-break: break-word;
}

.friend-activity {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
}

.audio-list {
    margin-top: 10px;
}

.audio-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.audio-item:last-child {
    border-bottom: none;
}

.audio-icon {
    color: #507299;
    margin-right: 10px;
    font-size: 14px;
}

.audio-info {
    flex-grow: 1;
}

.audio-title {
    font-size: 12px;
    color: #2a5885;
}

.audio-author {
    font-size: 11px;
    color: #666;
}

.audio-duration {
    font-size: 11px;
    color: #999;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-size: 12px;
}

.stat-value {
    color: #2a5885;
    font-weight: bold;
    font-size: 12px;
}

/* Центральная колонка */
.center-column {
    flex: 1;
    min-width: 0; /* Для правильной работы flex */
}

.page-title {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 20px;
}

.page-title h1 {
    color: #2a5885;
    font-size: 20px;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #666;
    font-size: 13px;
}

.status-update {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 15px;
}

.status-header {
    font-weight: bold;
    color: #2a5885;
    margin-bottom: 10px;
    font-size: 14px;
}

.status-input {
    width: 100%;
    border: 1px solid #d3d9de;
    border-radius: 3px;
    padding: 10px;
    min-height: 60px;
    resize: vertical;
    margin-bottom: 10px;
    font-size: 13px;
}

.status-actions {
    display: flex;
    justify-content: space-between;
}

.status-btn {
    background-color: #e5ebf1;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    color: #55677d;
    cursor: pointer;
    font-size: 13px;
}

.status-btn:hover {
    background-color: #dae2ea;
}

.send-btn {
    background-color: #507299;
    color: white;
}

.send-btn:hover {
    background-color: #3c5a7a;
}

/* Посты */
.posts {
    margin-top: 15px;
}

.post {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 15px;
}

.post-header {
    display: flex;
    margin-bottom: 15px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-author-info {
    flex-grow: 1;
}

.post-author {
    font-weight: bold;
    color: #2a5885;
    font-size: 14px;
}

.post-date {
    color: #999;
    font-size: 12px;
    margin-top: 3px;
}

.post-content {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 13px;
}

.post-image {
    margin-bottom: 15px;
}

.post-image img {
    max-width: 100%;
    border-radius: 3px;
    border: 1px solid #e7e8ec;
}

.post-stats {
    display: flex;
    padding: 10px 0;
    border-top: 1px solid #e7e8ec;
    border-bottom: 1px solid #e7e8ec;
    color: #666;
    font-size: 12px;
}

.likes, .comments-count, .reposts {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.likes i, .comments-count i, .reposts i {
    margin-right: 5px;
    color: #507299;
}

.post-actions {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e7e8ec;
}

.post-action-btn {
    background: none;
    border: none;
    padding: 5px 15px;
    margin-right: 10px;
    color: #2a5885;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.post-action-btn:hover {
    background-color: #f0f2f5;
}

.post-action-btn i {
    margin-right: 5px;
}

/* Комментарии */
.post-comments {
    margin-top: 15px;
}

.comment {
    display: flex;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
}

.comment-author {
    font-weight: bold;
    color: #2a5885;
    font-size: 13px;
    margin-bottom: 3px;
}

.comment-text {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.comment-actions {
    font-size: 11px;
    color: #999;
}

.comment-like, .comment-reply {
    color: #2a5885;
    cursor: pointer;
}

.comment-like:hover, .comment-reply:hover {
    text-decoration: underline;
}

.add-comment {
    display: flex;
    margin-top: 10px;
}

.comment-input {
    flex-grow: 1;
    border: 1px solid #d3d9de;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 13px;
}

/* Кнопка "Загрузить еще" */
.load-more {
    text-align: center;
    margin: 20px 0;
}

.load-more-btn {
    background-color: #e5ebf1;
    border: none;
    padding: 12px 25px;
    border-radius: 3px;
    color: #55677d;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.load-more-btn:hover {
    background-color: #dae2ea;
}

.load-more-btn i {
    margin-right: 8px;
}

/* Правая колонка */
.right-column {
    width: 200px;
}

.ads {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.ad-title {
    background-color: #f0f2f5;
    padding: 10px 15px;
    font-weight: bold;
    color: #666;
    font-size: 13px;
    border-bottom: 1px solid #e7e8ec;
}

.ad-content {
    padding: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.ad-content:last-child {
    border-bottom: none;
}

.ad-image {
    width: 100%;
    border-radius: 3px;
    margin-bottom: 10px;
}

.ad-text {
    font-size: 12px;
    color: #2a5885;
    line-height: 1.4;
}

.birthdays, .online {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 15px;
}

.birthday-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.birthday-item:last-child {
    border-bottom: none;
}

.birthday-date {
    color: #666;
    font-size: 12px;
}

.birthday-person {
    color: #2a5885;
    font-weight: bold;
    font-size: 12px;
}

.online-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.online-item:last-child {
    border-bottom: none;
}

.online-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.online-name {
    flex-grow: 1;
    color: #2a5885;
    font-size: 13px;
}

.online-status {
    width: 8px;
    height: 8px;
    background-color: #8ac176;
    border-radius: 50%;
}

.online-count {
    color: #999;
    font-weight: normal;
    font-size: 12px;
}

/* Настройки уведомлений */
.notification-settings {
    margin-top: 20px;
}

.setting {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.setting input {
    margin-right: 10px;
}

.setting label {
    color: #2a5885;
    font-size: 13px;
}

/* Футер */
.footer {
    background-color: #fff;
    border-top: 1px solid #d3d9de;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-link {
    color: #2a5885;
    text-decoration: none;
    margin: 0 5px;
}

.footer-link:hover {
    text-decoration: underline;
}

.copyright {
    margin-bottom: 5px;
}

.counter {
    color: #999;
}