/* Context Menu Stilleri */
.calendar-context-menu {
  position: fixed;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  min-width: 180px;
  padding: 4px 0;
  max-height: calc(100vh - 20px);
  overflow: hidden;
}

.context-student-picker {
  width: 330px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 34px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.context-student-picker-header {
  padding: 4px 2px 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

.context-student-picker-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.context-student-picker-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.context-student-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; padding: 3px; border-radius: 6px; background: #eef2f7; }
.context-student-tab { border: 0; border-radius: 4px; padding: 6px 8px; background: transparent; color: #475569; font-size: 11px; font-weight: 700; cursor: grab; user-select: none; }
.context-student-tab:active { cursor: grabbing; }
.context-student-tab.dragging { opacity: .48; }
.context-student-tab.active { background: #fff; color: #0f62a5; box-shadow: 0 1px 3px rgba(15, 23, 42, .14); }
.context-bkds-meta { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.context-bkds-meta span { padding: 2px 5px; border-radius: 10px; background: #e8f7ee; color: #16733d; font-size: 9px; font-weight: 700; }

.context-student-search {
  width: 100%;
  height: 30px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.context-student-list {
  max-height: min(430px, calc(100vh - 145px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 4px;
  min-height: 0;
}

.context-student-row {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.context-student-row:hover,
.context-student-row:focus {
  background: #eef6ff;
}

.context-student-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.context-student-detail {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.2;
}

.context-student-row .student-card-simple {
  margin-bottom: 0;
  min-height: 44px;
  cursor: pointer !important;
  pointer-events: auto;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
}

.context-student-row .student-avatar-simple {
  width: 32px;
  height: 32px;
  margin-right: 7px;
}

.context-student-row .student-name-simple {
  font-size: 11px;
  line-height: 1.2;
  max-width: none;
}

.context-student-row .student-program-simple {
  line-height: 1.15;
}

.context-student-row .student-info-simple {
  min-width: 0;
  flex: 1;
}

.context-student-row .student-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.context-student-row .student-lesson-hours {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.context-student-row .lesson-hour-box {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.context-student-row .lesson-hour-box.individual,
.context-student-row .lesson-hour-box.group {
  background: #28a745;
  color: #fff;
}

.context-student-row .program-badge {
  font-size: 9px;
  padding: 1px 4px;
  margin: 1px 2px 1px 0;
  cursor: pointer;
  pointer-events: auto;
}

.context-student-row .program-badge:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.context-student-row .lesson-counter-inline {
  transform: scale(0.9);
  transform-origin: right center;
}

.context-student-list::-webkit-scrollbar {
  width: 8px;
}

.context-student-list::-webkit-scrollbar-track {
  background: #eef2f7;
  border-radius: 8px;
}

.context-student-list::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
}

.context-student-list::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.context-student-empty {
  padding: 18px 10px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.context-menu-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s;
  font-size: 14px;
}

.context-menu-item:hover {
  background-color: #f0f0f0;
}

.context-menu-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.context-menu-item.disabled:hover {
  background-color: transparent;
}

.context-menu-separator {
  height: 1px;
  background-color: #e0e0e0;
  margin: 4px 8px;
}

.context-menu-item i {
  width: 16px;
  text-align: center;
  color: #666;
}

.context-menu-item span {
  color: #333;
}

.context-menu-item.disabled span {
  color: #999;
}

/* Event Modal Stilleri */
#event-modal .uk-modal-dialog {
  max-width: 500px;
}

#event-modal .uk-form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

#event-modal .uk-input,
#event-modal .uk-textarea,
#event-modal .uk-select {
  border: 1px solid #ddd;
  border-radius: 4px;
}

#event-modal .uk-input:focus,
#event-modal .uk-textarea:focus,
#event-modal .uk-select:focus {
  border-color: #3788d8;
  outline: none;
}
