/*****************************************************
 *  Students Module Styles
 *  ����� �����, ���� �����, ������, ����� ���/����
 *****************************************************/


/* ====================================================
   1)  ����� ���� ����� � ����, �����, ����� ����
   ==================================================== */

#student-form-modal .dialog {
  width: 900px !important;
  max-width: 95vw;
  border-radius: 22px;
  padding: 0;
}

#student-form-modal .title {
  padding: 20px 30px 10px;
  font-size: 20px;
  font-weight: 700;
}

#student-form-modal .form {
  padding: 10px 30px 20px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
}

.student-section {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.student-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #374151;
}

.student-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
}

.student-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.student-row label {
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
}

.student-row .input,
.student-row select {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
}


/* ������ ����� */
#student-form-modal .actions {
  padding: 14px 30px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
}



/* ====================================================
   2)  ����� ��� / ����� / ���� (���� �� ����� + )
   ==================================================== */

.location-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.location-row .input,
.location-row select {
  flex: 1;
}

.location-row .btn.btn-sm{
  width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  margin-top: -10px;
  border: 1px solid #d1d5db;
}

.location-row .btn.btn-sm:hover{
  background: #f3f4f6;
}




/* ====================================================
   3)  ����� ����� � ��� ����� (View Student Card)
   ==================================================== */

#student-card-modal .dialog {
  width: 1000px;
  max-width: 95vw;
  border-radius: 22px;
}

#student-card-modal .form {
  padding: 20px 40px 14px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

/* ���� �� ���� ������� */
.student-card-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.student-card-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #374151;
}

.student-card-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 32px;
}

/* ���� ������ */
.student-card-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ����� */
.student-card-label {
  flex: 0 0 100px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding-left: 10px;
  border-left: 2px solid #e5e7eb;
  white-space: nowrap;
}

/* ��� (������ ����� ���) */
.student-card-value {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px 10px;
  min-height: 26px;
  display: flex;
  align-items: center;
}

.student-card-value:empty::before {
  content: '\00a0';
}

/* ����� ������� */
#student-card-modal .field[style*="grid-column"] {
  grid-column: 1 / -1;
}



/* ====================================================
   4)  ���� ����� � ����� ����� ��� ����
   ==================================================== */

.error-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.error-modal {
  direction: rtl;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  z-index: 9999;
}

.error-modal__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-modal__body {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 24px;
}

.error-modal__actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}



/* ====================================================
   5)  ���� ����� (Info Modal)
   ==================================================== */

.student-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 130;
}

.student-modal {
  direction: rtl;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.student-modal-header h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.student-modal-body p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.student-modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.students-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 8px 0 12px;
}

.students-filter-box {
  background: #4b0a0a;
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.students-filter-select {
  border: 1px solid color(rec2020 red green blue);
  border-radius: 14px;
  padding: 15px;
  background: #fff;
  width: 100%;
  margin-bottom: 10px;
}

.students-filter-input {
  border: 1px solid color(rec2020 red green blue);
  border-radius: 14px;
  padding: 15px;
  background: #fff;
  width: 100%;
  margin-bottom: 10px;
}

students-filter-select:focus,
.students-filter-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

/* ===== Students Sub Tabs (fix style + avoid permissions hiding) ===== */
.students-tabs { 
  display: flex; 
  gap: 8px; 
  justify-content: center; 
  margin: 6px 0 14px; 
}

.students-tabs .subtab {
  appearance: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}

.students-tabs .subtab.active {
  background: #2d89ef;
  border-color: #2d89ef;
  color: #fff;
}

.students-subtabs{
  display:flex;
  gap:8px;
  justify-content:center;
  margin:6px 0 14px;
}

.students-subtabs .students-subtab{
  appearance:none;
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:6px;
  padding:6px 12px;
  cursor:pointer;
  font-weight:600;
}

.students-subtabs .students-subtab.active{
  background:#2d89ef;
  border-color:#2d89ef;
  color:#fff;
}

