/* MODAL.CSS - Modal styles */

.modal-overlay{
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.5);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}
.modal-overlay.show{display:flex}
.modal{
  background:#fff;
  border-radius:20px;
  padding:28px;
  max-width:640px;
  width:90%;
  max-height:85vh;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
  display:flex;
  flex-direction:column;
}
.modal-body{
  overflow-y:auto;
  padding-right:12px;
  margin-bottom:20px;
}
.modal-body::-webkit-scrollbar{
  width:8px;
}
.modal-body::-webkit-scrollbar-track{
  background:var(--chip);
  border-radius:10px;
}
.modal-body::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:10px;
}
.modal-body::-webkit-scrollbar-thumb:hover{
  background:#9ca3af;
}
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  padding-bottom:12px;
  border-bottom:1px solid var(--stroke);
}
.modal-title{font-size:20px; font-weight:700}
.modal-close{
  background:none;
  border:none;
  font-size:24px;
  cursor:pointer;
  color:var(--muted);
  padding:0;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
}
.modal-close:hover{background:var(--chip)}
.form-group{margin-bottom:16px}
.form-group label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  margin-bottom:6px;
}
.form-group input, .form-group select, .form-group textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none;
  border-color:var(--indigo);
  box-shadow:0 0 0 3px rgba(79,70,229,0.1);
}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.modal-footer{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  padding-top:12px;
  border-top:1px solid var(--stroke);
}

/* === Модальное окно комментариев === */
.comment-modal-content {
  width: 500px;
}

.comment-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  resize: vertical;
  box-sizing: border-box;
}

.comment-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selected-count {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}
