.info-section {
    padding: 100px 24px 60px;
    min-height: calc(100vh - 200px);
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
}

.info-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-message {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.info-message-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-date {
    font-size: 13px;
    color: var(--text-muted);
}

.info-message-content {
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

.info-message-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

.info-message-content a {
    color: var(--accent-purple-light);
    text-decoration: none;
}

.info-message-content a:hover {
    text-decoration: underline;
}

.info-message-content ul,
.info-message-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.info-message-content li {
    margin: 4px 0;
}

.info-message-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 16px 0;
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-messages-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    opacity: 0.5;
}

.text-editor {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.toolbar-btn svg {
    display: block;
}

.toolbar-select {
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

.editor-wrapper {
    position: relative;
    width: 100%;
}

.editor-content {
    min-height: 200px;
    max-height: 400px;
    padding: 16px;
    padding-bottom: 40px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    overflow-y: auto;
    outline: none;
    background: var(--bg-input);
    border: none;
    margin-bottom: 0;
}

.editor-content:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
    font-weight: 500;
    line-height: 1;
}

.char-counter.limit-exceeded {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.3);
}

.char-counter.limit-warning {
    color: #ffa502;
    background: rgba(255, 165, 2, 0.3);
}

/* Стили для списка сообщений в админке */
.info-messages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.info-message-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.info-message-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.info-message-header-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.info-message-title-admin {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.info-message-date-admin {
    font-size: 13px;
    color: var(--text-muted);
}

.info-message-preview {
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.info-message-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-card));
}

.info-message-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.btn-edit-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-purple);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-edit-info:hover {
    background: var(--accent-purple-light);
    color: var(--bg-primary);
}

.btn-delete-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-delete-info:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff8888;
}

.btn-add-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--accent-purple);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
    margin-bottom: 24px;
}

.btn-add-info:hover {
    background: var(--accent-purple-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 129, 166, 0.4);
}

.info-modal {
    max-width: 800px;
    width: 90%;
}

.info-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.form-input-title {
    font-size: 18px;
    font-weight: 500;
}

.editor-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

.editor-content a {
    color: var(--accent-purple-light);
    text-decoration: none;
}

.editor-content ul,
.editor-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.editor-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    margin: 16px 0;
}

.form-input-title {
    padding-right: 60px !important;
}

#titleCharCounter {
    position: absolute;
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

#titleCharCounter.limit-warning {
    color: #fcbc0b;
}

#titleCharCounter.limit-exceeded {
    color: #ff4444;
}
