/* css/admin.css */

/* Calendar and Attendance list styling */
.class-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.class-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-item-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.class-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.class-level {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  text-transform: uppercase;
}

.class-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-main);
}

.class-date-time {
  font-size: 13px;
  color: var(--color-text-muted);
}

.class-item-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Attendance options form in Modal */
.student-attendance-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.attendance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.student-name-att {
  font-weight: 600;
  font-size: 15px;
}

.attendance-options {
  display: flex;
  gap: 8px;
}

.att-opt-btn {
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.att-opt-btn input {
  display: none;
}

/* Color codes on toggle */
.present-opt input:checked + span {
  color: var(--color-success);
}
.present-opt:has(input:checked) {
  background-color: var(--color-success-light);
  border-color: var(--color-success);
}

.late-opt input:checked + span {
  color: var(--color-warning);
}
.late-opt:has(input:checked) {
  background-color: var(--color-warning-light);
  border-color: var(--color-warning);
}

.absent-opt input:checked + span {
  color: var(--color-danger);
}
.absent-opt:has(input:checked) {
  background-color: var(--color-danger-light);
  border-color: var(--color-danger);
}

/* Exam designer styles */
.question-creator-box {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  position: relative;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 8px;
}

.delete-q-btn {
  background: transparent;
  color: var(--color-danger);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.delete-q-btn:hover {
  text-decoration: underline;
}

/* Grading panel elements */
.submission-item-box {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.sub-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.sub-date {
  color: var(--color-text-muted);
  font-size: 12px;
}

.written-text-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.student-text-block {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feedback-text {
  font-size: 13px;
  color: var(--color-text-muted);
}
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  font-size: 16px;
}

/* Event type options styling inside modal */
.event-type-options .event-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-card);
  transition: all 0.2s ease;
}

.event-type-options .event-opt-btn:hover {
  background-color: var(--color-bg-main);
  border-color: var(--color-text-muted);
}

.event-type-options input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  margin: 0;
}

/* Admin Facturación Styles */
.admin-fact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: var(--color-bg-card);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.admin-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .admin-fact-grid {
    grid-template-columns: 1fr;
  }
}

.admin-fact-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.admin-fact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-fact-month {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.admin-fact-file-details {
  font-size: 13px;
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-fact-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.btn-select-file {
  font-size: 12px;
  padding: 6px 12px;
}

.btn-upload-file {
  font-size: 12px;
  padding: 6px 12px;
}

