/* tasks_modal.css */

#create-assignment-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 100200;
}

.create-assignment-modal-content {
  max-width: 1040px;
  width: calc(100% - 32px);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: #222;
  display: flex;
  flex-direction: column;
}

.create-assignment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.create-assignment-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.create-assignment-modal-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.create-assignment-modal-title-icon i {
  width: 18px;
  height: 18px;
}

.create-assignment-modal-title-text {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
}

.create-assignment-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-assignment-save-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.create-assignment-save-btn i {
  width: 18px;
  height: 18px;
}

.create-assignment-close-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.create-assignment-modal-body {
  padding: 14px 16px 16px 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.create-assignment-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.create-assignment-cover {
  flex: 0 0 auto;
}

.create-assignment-cover-box {
  width: 180px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-assignment-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-assignment-top-right {
  flex: 1;
  min-width: 0;
}

.create-assignment-dictation-title {
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 6px 0;
}

.create-assignment-cover-meta {
  color: rgba(0,0,0,0.6);
  font-size: 13px;
}

.create-assignment-bottom {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  min-height: 0;
  flex: 1;
}

.create-assignment-panel {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.create-assignment-panel--days {
  width: 200px;
}

.create-assignment-panel--sentences {
  min-width: 0;
}

 .create-assignment-panel--sentences .create-assignment-panel-body {
   overflow: hidden;
 }

.create-assignment-panel-body {
  padding: 10px;
  min-height: 0;
  overflow: hidden;
}

 .create-assignment-sentences-scroll {
   max-height: 420px;
   overflow: auto;
 }

 .create-assignment-table--sentences thead th {
   position: sticky;
   top: 0;
   background: #fff;
   z-index: 1;
 }

 .create-assignment-table--sentences thead th {
   box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
 }

 .create-assignment-table--sentences thead tr {
   background: #fff;
 }

.create-assignment-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.create-assignment-table {
  width: 100%;
  border-collapse: collapse;
}

.create-assignment-table th,
.create-assignment-table td {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 8px 10px;
}

 .create-assignment-table .exercise-row.selected td {
   background: rgba(255, 0, 128, 0.10);
 }

.create-assignment-table--sentences {
  width: 100%;
  table-layout: fixed;
}

.create-assignment-th-num {
  width: 52px;
  text-align: right;
}

.create-assignment-th-check {
  width: 52px;
  text-align: center;
}

.create-assignment-th-text {
  text-align: left;
}

.create-assignment-td-num {
  width: 52px;
  text-align: right;
  color: rgba(0,0,0,0.65);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.create-assignment-td-check {
  width: 52px;
  text-align: center;
}

.create-assignment-td-text {
  width: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
