/* modal-improved.css: улучшенные стили для модального окна */

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #eee;
  gap: var(--space-md);
}

.modal-header h2 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  flex: 1;
  min-width: 0;
  word-break: break-word;
  line-height: 1.3;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.modal-body .field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.modal-body .field label {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.modal-body .field input,
.modal-body .field textarea,
.modal-body .field select {
  margin-bottom: 0;
}

.modal-body .field small {
  color: #666;
  font-size: 12px;
  margin-top: var(--space-xs);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid #eee;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.modal-footer > div {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.add-comment {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: flex-start;
}

.add-comment input {
  flex: 1;
  margin-bottom: 0;
}

.add-comment button {
  white-space: nowrap;
  height: var(--button-height-md);
}

#comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  max-height: 300px;
  overflow-y: auto;
  padding-right: var(--space-xs);
}

.comment {
  padding: var(--space-sm) var(--space-md);
  margin-bottom: 0;
}

.comment-header {
  gap: var(--space-sm);
}

.modal-content {
  max-width: 600px;
  width: 90vw;
}










