* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f6f7fb;
  color: #111b38;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 224px;
  background: #fff;
  border-right: 1px solid #e7e9f2;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  letter-spacing: 2px;
}
.brand span,
.login-logo span,
.avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7061ed, #4e3dc8);
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-weight: 800;
}
.profile-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f8f8fc;
  border: 1px solid #e8e8f2;
  border-radius: 16px;
  padding: 13px;
  margin: 30px 0 20px;
}
.profile-mini strong,
.profile-mini small {
  display: block;
  font-size: 12px;
}
.profile-mini small {
  color: #8890a5;
  margin-top: 4px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar nav a {
  padding: 13px 14px;
  border-radius: 12px;
  color: #687087;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  gap: 13px;
}
.sidebar nav a.active {
  background: #ece9ff;
  color: #4e40ce;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom a {
  font-size: 13px;
  color: #8a91a5;
}
.main-area {
  margin-left: 224px;
  width: calc(100% - 224px);
}
.topbar {
  height: 82px;
  background: #fafbfe;
  border-bottom: 1px solid #eceef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.today {
  font-size: 12px;
  color: #677087;
}
.top-user {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
.avatar.small {
  width: 34px;
  height: 34px;
}
.content {
  padding: 34px 6%;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 38px;
  line-height: 1.12;
  margin: 10px 0;
}
.page-heading p {
  color: #7f879d;
  margin: 0;
}
.page-heading.compact {
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #6354df;
}
.primary-btn {
  border: 0;
  background: #5c48e6;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px #6354df33;
}
.link-btn {
  font-size: 13px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 0.85fr);
  gap: 20px;
}
.hero-card {
  min-height: 240px;
  border-radius: 24px;
  padding: 34px;
  background: linear-gradient(120deg, #32207e, #6754ed);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.hero-card h2 {
  font-size: 31px;
  margin: 24px 0 12px;
}
.hero-card p {
  font-size: 13px;
  color: #ded9ff;
}
.hero-card button {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  color: #4433bf;
  font-weight: 700;
  margin-top: 18px;
}
.hero-card small {
  margin-left: 14px;
}
.hero-label {
  font-size: 10px;
  background: #ffffff18;
  padding: 8px 12px;
  border-radius: 20px;
}
.progress-ring {
  width: 130px;
  height: 130px;
  border: 12px solid #ffffff28;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.progress-ring strong {
  font-size: 27px;
}
.progress-ring span {
  font-size: 9px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.stat-card,
.plan-card,
.assistant-card,
.exam-card,
.rhythm-card,
.table-card,
.form-card {
  background: #fff;
  border: 1px solid #e4e7f0;
  border-radius: 18px;
}
.stat-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
}
.stat-card > span {
  grid-row: 1/3;
  background: #eeeaff;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #5f4ce6;
}
.stat-card small {
  color: #9198aa;
}
.stat-card strong {
  font-size: 17px;
}
.plan-card {
  padding: 24px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title h2 {
  margin: 8px 0 18px;
}
.section-title a {
  font-size: 11px;
  color: #5544df;
  font-weight: 700;
}
.task-row {
  display: grid;
  grid-template-columns: 64px 42px 1fr 40px;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #edf0f5;
  padding: 18px 0;
}
.task-row time {
  font-weight: 700;
}
.task-row time small,
.task-row div span,
.task-row div small {
  display: block;
  color: #939bae;
  font-size: 10px;
  margin-top: 5px;
}
.task-row div strong {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.task-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eeeaff;
  color: #5e4dde;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.task-icon.green {
  background: #def7f2;
  color: #208f7d;
}
.task-row button {
  width: 30px;
  height: 30px;
  border: 1px solid #dfe3ec;
  background: #fff;
  border-radius: 9px;
}
.right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.assistant-card,
.exam-card,
.rhythm-card {
  padding: 20px;
}
.assistant-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.assistant-head strong,
.assistant-head small {
  display: block;
  font-size: 12px;
}
.assistant-head small {
  font-size: 9px;
  color: #34a987;
  margin-top: 4px;
}
.assistant-card p {
  background: #f0edff;
  padding: 14px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.6;
}
.chips {
  display: flex;
  gap: 6px;
}
.chips span {
  border: 1px solid #dedaf7;
  border-radius: 14px;
  padding: 6px 9px;
  font-size: 9px;
}
.exam-card h3 {
  margin: 15px 0 4px;
}
.exam-card > strong {
  font-size: 34px;
}
.exam-card > strong small {
  font-size: 10px;
  font-weight: 400;
}
.bar {
  height: 6px;
  background: #eeeef3;
  border-radius: 8px;
  margin: 18px 0;
}
.bar i {
  display: block;
  width: 18%;
  height: 100%;
  background: #e05b8d;
  border-radius: 8px;
}
.exam-card button {
  width: 100%;
  padding: 11px;
  border: 1px solid #e2e4ed;
  background: #fff;
  border-radius: 10px;
  font-weight: 700;
}
.bars {
  height: 100px;
  display: flex;
  align-items: end;
  gap: 8px;
}
.bars i {
  flex: 1;
  background: #dcd8f6;
  border-radius: 6px 6px 0 0;
  height: 45%;
}
.bars i:nth-child(2) {
  height: 70%;
}
.bars i:nth-child(4) {
  height: 82%;
  background: #6956e9;
}
.bars i:nth-child(5) {
  height: 60%;
}
.bars i:nth-child(6) {
  height: 35%;
}
.bars i:nth-child(7) {
  height: 20%;
}
.alert {
  padding: 13px 15px;
  border-radius: 11px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert.success {
  background: #e9f9f1;
  color: #237a55;
}
.alert.error {
  background: #fff0f1;
  color: #bb3344;
}
.table-card {
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
}
td strong,
td small {
  display: block;
}
td small {
  color: #9198aa;
  margin-top: 4px;
}
.role-badge,
.status {
  padding: 6px 9px;
  border-radius: 12px;
  font-size: 10px;
}
.role-badge {
  background: #efecff;
  color: #5645d1;
}
.status.on {
  background: #e9f8f0;
  color: #25885f;
}
.status.off {
  background: #fff0f1;
  color: #bc4050;
}
.text-btn {
  border: 0;
  background: none;
  color: #5d49dc;
  font-size: 11px;
}
.form-card {
  padding: 24px;
  max-width: 900px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-card label,
.login-card label {
  font-size: 12px;
  font-weight: 700;
  color: #4d5670;
}
.form-card input,
.form-card select,
.login-card input {
  width: 100%;
  padding: 14px;
  border: 1px solid #dfe3ed;
  border-radius: 11px;
  margin-top: 8px;
  outline: none;
  background: #fff;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}
.login-body {
  background: #f5f6fb;
}
.login-grid {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.login-showcase {
  padding: 52px 8%;
  background: linear-gradient(140deg, #25176d, #6551e9);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-showcase:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  right: -180px;
  top: 80px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  letter-spacing: 2px;
}
.showcase-copy {
  margin: auto 0;
  max-width: 620px;
  position: relative;
  z-index: 1;
}
.showcase-copy .eyebrow {
  color: #d8d2ff;
}
.showcase-copy h1 {
  font-size: 58px;
  line-height: 1.02;
  margin: 18px 0;
}
.showcase-copy p {
  color: #d8d4f6;
  line-height: 1.7;
  max-width: 530px;
}
.showcase-card {
  background: #ffffff12;
  border: 1px solid #ffffff25;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
}
.showcase-card span {
  font-size: 12px;
  color: #dcd8f4;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 22px 70px #26315a14;
}
.login-card h2 {
  font-size: 30px;
  margin: 12px 0 8px;
}
.login-card > p {
  color: #8a92a7;
  margin-bottom: 28px;
}
.login-card label {
  display: block;
  margin-top: 18px;
}
.login-card button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #5e4ae4;
  color: #fff;
  padding: 15px;
  margin-top: 24px;
  font-weight: 800;
}
.demo-info {
  margin-top: 18px;
  background: #f5f3ff;
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  color: #6359a0;
}
@media (max-width: 900px) {
  .sidebar {
    width: 82px;
  }
  .sidebar .brand strong,
  .profile-mini div,
  .sidebar nav span,
  .sidebar-bottom {
    display: none;
  }
  .main-area {
    margin-left: 82px;
    width: calc(100% - 82px);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .login-grid {
    grid-template-columns: 1fr;
  }
  .login-showcase {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .sidebar {
    display: none;
  }
  .main-area {
    margin: 0;
    width: 100%;
  }
  .content {
    padding: 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 20px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .hero-card {
    padding: 24px;
  }
  .progress-ring {
    display: none;
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .task-row {
    grid-template-columns: 54px 36px 1fr;
  }
  .task-row button {
    display: none;
  }
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid #e4e7f0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
}
.top-icon i,
.nav-badge {
  position: absolute;
  background: #ed4e78;
  color: #fff;
  border-radius: 20px;
  font-style: normal;
  font-size: 9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
}
.top-icon i {
  right: -5px;
  top: -6px;
}
.nav-badge {
  right: 8px;
}
.sidebar nav a {
  position: relative;
}
.sidebar nav a b {
  width: 16px;
  text-align: center;
}
.live-pill {
  background: #e9f8f0;
  color: #25885f;
  border-radius: 20px;
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 800;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.quick-actions a {
  padding: 18px;
  border: 1px solid #e5e7f0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  background: #fafaff;
}
.timeline-card,
.conversation-list,
.chat-card {
  background: #fff;
  border: 1px solid #e4e7f0;
  border-radius: 18px;
  overflow: hidden;
}
.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #edf0f5;
}
.timeline-item.unread {
  background: #f6f3ff;
}
.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8bed0;
  margin-top: 6px;
}
.timeline-item.unread .timeline-dot {
  background: #624fe7;
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.timeline-head time,
.timeline-item p {
  font-size: 11px;
  color: #8a92a7;
}
.empty-state {
  padding: 40px;
  text-align: center;
  color: #8a92a7;
}
.conversation-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f5;
  align-items: center;
}
.conversation-card p {
  font-size: 11px;
  color: #8a92a7;
  margin: 6px 0 0;
}
.conversation-card time {
  font-size: 10px;
  color: #949caf;
}
.chat-stream {
  height: 58vh;
  overflow: auto;
  padding: 22px;
  background: #f8f8fc;
}
.chat-message {
  max-width: 70%;
  background: #fff;
  border: 1px solid #e4e7f0;
  padding: 13px 15px;
  border-radius: 14px;
  margin: 0 0 12px;
}
.chat-message.mine {
  margin-left: auto;
  background: #eeeaff;
}
.chat-message strong,
.chat-message time {
  font-size: 10px;
}
.chat-message p {
  font-size: 12px;
  line-height: 1.5;
}
.chat-message time {
  color: #939bae;
}
.chat-form {
  display: flex;
  gap: 12px;
  padding: 16px;
}
.chat-form textarea {
  flex: 1;
  min-height: 70px;
  border: 1px solid #dfe3ed;
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
}
.admin-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
}


.live-assistant-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.live-assistant-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #17203a;
    font-size: 14px;
}

.live-assistant-main strong {
    font-size: 14px;
    font-weight: 800;
}

.live-assistant-date {
    color: #667085;
}

.live-assistant-date::before {
    content: "•";
    margin-right: 8px;
    color: #6554e8;
}

.live-assistant-time {
    min-width: 70px;
    color: #6554e8;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.live-assistant-time::before {
    content: "•";
    margin-right: 8px;
    color: #98a2b3;
}

.live-assistant-motivation {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.live-assistant-motivation::before {
    content: "🎯";
    margin-right: 6px;
}

.live-assistant-motivation.is-changing {
    opacity: 0;
    transform: translateY(3px);
}

@media (max-width: 768px) {
    .live-assistant-main {
        gap: 5px;
        font-size: 12px;
    }

    .live-assistant-main strong {
        width: 100%;
        font-size: 13px;
    }

    .live-assistant-date::before {
        display: none;
    }

    .live-assistant-motivation {
        display: none;
    }
}

/* ROTİN v0.3.1 — üst bar ve canlı kullanıcı merkezi */

.topbar { min-height: 88px; height: auto; padding: 16px 38px; gap: 24px; }
.topbar-welcome { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.topbar-greeting-row, .topbar-date-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topbar-greeting { color: #17203a; font-size: 14px; font-weight: 800; }
.topbar-live-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #eaf8f1; color: #24835e; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.topbar-live-status i, .presence-dot { width: 7px; height: 7px; border-radius: 50%; background: #24b47e; box-shadow: 0 0 0 4px rgba(36,180,126,.12); flex: 0 0 auto; }
.topbar-date-row { color: #7b8499; font-size: 11px; }
.topbar-date-row strong { color: #5e4bd9; min-width: 66px; font-size: 11px; font-variant-numeric: tabular-nums; }
.topbar-separator { color: #c3c8d5; }

.motivation-card, .activity-card { background: #fff; border: 1px solid #e4e7f0; border-radius: 18px; }
.motivation-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.motivation-card.wide { margin-top: 14px; }
.motivation-icon { width: 36px; height: 36px; border-radius: 12px; background: #eeeaff; color: #5f4ce6; display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.motivation-card small, .motivation-card strong { display: block; }
.motivation-card small { color: #6354df; font-size: 9px; font-weight: 800; letter-spacing: 1px; margin-bottom: 7px; }
.motivation-card strong { color: #4e5870; font-size: 12px; line-height: 1.6; transition: opacity .22s ease, transform .22s ease; }
.motivation-card strong.is-changing { opacity: 0; transform: translateY(3px); }

.admin-main-column { display: flex; flex-direction: column; gap: 16px; }
.activity-card { padding: 24px; }
.activity-refresh { color: #98a0b2; font-size: 10px; }
.active-users-list { border-top: 1px solid #edf0f5; }
.active-user-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid #edf0f5; }
.active-user-row:last-child { border-bottom: 0; }
.active-user-copy, .active-user-page { min-width: 0; }
.active-user-copy strong, .active-user-copy small, .active-user-page span, .active-user-page small { display: block; }
.active-user-copy strong { font-size: 12px; color: #202942; }
.active-user-copy small { margin-top: 5px; color: #8a92a7; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-user-page { text-align: right; }
.active-user-page span { color: #5c49d6; font-size: 10px; font-weight: 700; }
.active-user-page small { margin-top: 5px; color: #a0a7b7; font-size: 9px; }
.empty-state.compact { padding: 24px 10px; }

@media (max-width: 900px) {
  .topbar { padding: 14px 22px; }
  .top-user > span:last-child { display: none; }
  .activity-refresh { display: none; }
}

@media (max-width: 620px) {
  .topbar { min-height: 72px; padding: 12px 16px; align-items: center; }
  .topbar-welcome { gap: 3px; }
  .topbar-greeting-row { gap: 7px; }
  .topbar-greeting { font-size: 12px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-live-status { padding: 4px 7px; font-size: 8px; }
  .topbar-date-row { font-size: 9px; gap: 6px; }
  .topbar-date-row strong { min-width: 58px; font-size: 9px; }
  .top-actions { gap: 6px; }
  .top-icon { width: 34px; height: 34px; }
  .top-user { display: none; }
  .activity-card { padding: 18px; }
  .active-user-row { grid-template-columns: 9px minmax(0,1fr); }
  .active-user-page { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: center; }
  .motivation-card { padding: 16px; }
}


/* ROTİN v0.4.0 — Öğrenci Kurulum Sihirbazı */
.wizard-card { background:#fff; border:1px solid #e4e7f0; border-radius:22px; overflow:hidden; }
.wizard-progress { display:grid; grid-template-columns:repeat(5,1fr); border-bottom:1px solid #eceef5; background:#fafaff; }
.wizard-progress button { border:0; background:none; padding:18px 10px; color:#9aa1b2; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; }
.wizard-progress button b { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:#e9eaf1; font-size:11px; }
.wizard-progress button span { font-size:11px; font-weight:700; }
.wizard-progress button.active { color:#5947d8; }
.wizard-progress button.active b { background:#6554e8; color:#fff; }
.wizard-step { display:none; padding:30px; }
.wizard-step.active { display:block; }
.wizard-heading { display:flex; gap:14px; align-items:flex-start; margin-bottom:24px; }
.wizard-heading > span { width:38px; height:38px; border-radius:12px; background:#eeeaff; color:#5e4bdb; display:grid; place-items:center; font-weight:800; flex:0 0 auto; }
.wizard-heading h2 { margin:0 0 6px; font-size:22px; }
.wizard-heading p { margin:0; color:#8a92a7; font-size:12px; }
.wizard-card label { font-size:12px; font-weight:700; color:#4d5670; }
.wizard-card input, .wizard-card select { width:100%; padding:13px; border:1px solid #dfe3ed; border-radius:11px; margin-top:8px; background:#fff; }
.subject-selector { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.subject-choice { border:1px solid #e5e7ef; border-radius:15px; padding:15px; }
.subject-check { display:flex; align-items:center; gap:10px; }
.subject-check input { width:auto; margin:0; }
.subject-check span { width:10px; height:32px; border-radius:8px; background:var(--subject-color); }
.subject-settings { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; padding-top:12px; border-top:1px solid #eff0f5; }
.subject-settings small { color:#9198aa; font-weight:400; }
.schedule-list { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.schedule-row { display:grid; grid-template-columns:1fr 1.15fr 1.4fr .8fr .8fr 38px; gap:8px; align-items:end; }
.schedule-row input, .schedule-row select { margin:0; }
.schedule-row button { height:42px; border:1px solid #f0cfd5; background:#fff4f5; color:#c94b60; border-radius:10px; font-size:20px; }
.secondary-btn { border:1px solid #dedaf7; background:#f7f5ff; color:#5947d8; padding:12px 16px; border-radius:11px; font-weight:700; }
.parent-mode { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.parent-mode label { display:flex; align-items:center; gap:8px; padding:12px 14px; border:1px solid #e4e7ef; border-radius:12px; }
.parent-mode input { width:auto; margin:0; }
.relation-info, .wizard-final-note { background:#f4f2ff; border:1px solid #e4dfff; padding:16px; border-radius:14px; color:#5d53a1; font-size:12px; }
.wizard-final-note { margin-top:22px; }
.wizard-final-note strong, .wizard-final-note p { display:block; }
.wizard-final-note p { margin:7px 0 0; line-height:1.6; }
.wizard-actions { display:flex; justify-content:flex-end; align-items:center; gap:16px; padding:20px 30px; border-top:1px solid #eceef5; background:#fafbfe; }
.empty-state strong { display:block; color:#30394f; margin-bottom:7px; }
.empty-state p { margin:0; }

@media (max-width:900px) {
  .subject-selector { grid-template-columns:1fr; }
  .schedule-row { grid-template-columns:1fr 1fr; padding:14px; border:1px solid #e5e7ef; border-radius:14px; }
  .schedule-row button { grid-column:2; justify-self:end; width:42px; }
}
@media (max-width:620px) {
  .wizard-progress { overflow-x:auto; grid-template-columns:repeat(5,minmax(95px,1fr)); }
  .wizard-progress button { padding:14px 8px; }
  .wizard-step { padding:20px; }
  .wizard-heading h2 { font-size:19px; }
  .subject-settings, .schedule-row { grid-template-columns:1fr; }
  .schedule-row button { grid-column:1; justify-self:end; }
  .wizard-actions { padding:16px 20px; }
}



/* ROTİN v0.5.1 */
.status.waiting {
    background: #fff3d8;
    color: #9a6810;
}
.approval-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #5e4ae4;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.approval-btn:hover {
    background: #4936c7;
}
.muted-text {
    color: #9aa1b2;
    font-size: 11px;
}



/* ROTİN v0.5.2 — giriş kayıt çağrısı ve özel hata alanları */
.login-register-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #e2e5ef;
    border-radius: 13px;
    background: #f8f7ff;
    color: #111b38;
    text-decoration: none;
    transition: .2s ease;
}

.login-register-card:hover {
    border-color: #6652e8;
    background: #f3f1ff;
    transform: translateY(-1px);
}

.login-register-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #624de7;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.login-register-card span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.login-register-card strong {
    font-size: 11px;
}

.login-register-card small {
    color: #8b93a7;
    font-size: 9px;
    line-height: 1.35;
}

.login-register-card b {
    color: #5a46da;
    font-size: 10px;
    white-space: nowrap;
}

.login-card .field-message {
    display: block;
    min-height: 17px;
    margin-top: 6px;
    color: #278866;
    font-size: 10px;
    font-weight: 600;
}

.login-card .field-message.error {
    color: #d84058;
}

.login-card input.field-error {
    border-color: #e14d65 !important;
    background: #fff4f6 !important;
    box-shadow: 0 0 0 3px rgba(225, 77, 101, .08);
}


/* ROTİN v0.5.4 — Bildirim işlemleri ve tema uyumu */
.timeline-item {
    align-items: center;
}

.timeline-item form {
    margin: 0;
}

.notification-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #dcd7ff;
    border-radius: 11px;
    padding: 9px 14px;
    background: #f3f1ff;
    color: #5947d8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.notification-action-btn:hover {
    background: #5f4be3;
    border-color: #5f4be3;
    color: #fff;
    transform: translateY(-1px);
}

.notification-action-btn:focus-visible {
    outline: 3px solid rgba(95, 75, 227, .16);
    outline-offset: 2px;
}

.notification-read-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef8f3;
    color: #2b8563;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.notification-open-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid #e2defb;
    border-radius: 10px;
    background: #faf9ff;
    color: #5d49dc;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.notification-open-link:hover {
    background: #f0edff;
}

.timeline-content {
    min-width: 0;
    flex: 1;
}

@media (max-width: 700px) {
    .timeline-item {
        grid-template-columns: 12px minmax(0, 1fr);
        align-items: start;
    }

    .timeline-item form,
    .notification-read-label,
    .notification-open-link {
        grid-column: 2;
        justify-self: start;
        margin-top: 8px;
    }

    .timeline-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* ROTİN v0.6.0 — Rol bazlı portal hazırlık ekranı */
.portal-placeholder {
    width: min(760px, 100%);
    margin: 52px auto;
    padding: 54px 42px;
    border: 1px solid #e1e4ef;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 48px rgba(42, 34, 92, .06);
}
.portal-placeholder-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(145deg, #4b38c7, #6a51ee);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}
.portal-placeholder h1 {
    margin: 10px 0 12px;
    color: #101936;
    font-size: clamp(28px, 4vw, 42px);
}
.portal-placeholder > p {
    max-width: 620px;
    margin: 0 auto;
    color: #8189a0;
    font-size: 14px;
    line-height: 1.75;
}
.portal-placeholder-note {
    margin: 26px 0;
    padding: 15px 18px;
    border-radius: 13px;
    background: #f4f2ff;
    color: #5b4acb;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}
.portal-placeholder .primary-btn {
    display: inline-flex;
    text-decoration: none;
}
@media (max-width: 700px) {
    .portal-placeholder {
        margin: 20px auto;
        padding: 34px 20px;
        border-radius: 18px;
    }
}

/* ROTİN v0.6.2 — Öğrenci formu canlı doğrulama */
.wizard-card .field-wrap {
    display: block;
    min-width: 0;
}

.wizard-card .field-message {
    display: block;
    min-height: 17px;
    margin-top: 6px;
    color: #278866;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.wizard-card .field-message.error {
    color: #d84058;
}

.wizard-card input,
.wizard-card select,
.wizard-card textarea {
    outline: none;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.wizard-card input:focus,
.wizard-card select:focus,
.wizard-card textarea:focus {
    border-color: #6955e8;
    box-shadow: 0 0 0 3px rgba(105, 85, 232, .10);
}

.wizard-card input.field-error,
.wizard-card select.field-error,
.wizard-card textarea.field-error {
    border-color: #e14d65 !important;
    background: #fff4f6 !important;
    box-shadow: 0 0 0 3px rgba(225, 77, 101, .08) !important;
}

.wizard-card input.field-success,
.wizard-card select.field-success,
.wizard-card textarea.field-success {
    border-color: #49ad86 !important;
    background: #f7fffb !important;
    box-shadow: 0 0 0 3px rgba(73, 173, 134, .07) !important;
}

.wizard-card input.field-error:focus,
.wizard-card select.field-error:focus,
.wizard-card textarea.field-error:focus {
    border-color: #d84058 !important;
    box-shadow: 0 0 0 4px rgba(216, 64, 88, .11) !important;
}

.wizard-card input[type="date"].field-error {
    color: #9d3344;
}

.wizard-card select.field-error {
    color: #9d3344;
}

.wizard-card .field-wrap:has(.field-error) {
    color: #b7354a;
}

.wizard-card .field-wrap:has(.field-success) {
    color: #287c60;
}

@media (max-width: 620px) {
    .wizard-card .field-message {
        font-size: 9px;
    }
}



/* ROTİN v0.7.0 — Eğitim verisi ve aramalı hedef seçimi */
.education-target-grid { align-items:start; }
.field-help { display:block; margin-top:6px; color:#939bae; font-size:9px; font-weight:500; }
.autocomplete-field { position:relative; }
.autocomplete-field > label { display:block; }
.autocomplete-results { position:absolute; z-index:40; left:0; right:0; top:calc(100% - 2px); max-height:280px; overflow:auto; border:1px solid #ddd9f6; border-radius:12px; background:#fff; box-shadow:0 16px 38px rgba(34,25,93,.14); }
.autocomplete-option { display:block; width:100%; padding:12px 14px; border:0; border-bottom:1px solid #eef0f5; background:#fff; text-align:left; cursor:pointer; }
.autocomplete-option:hover { background:#f5f3ff; }
.autocomplete-option strong,.autocomplete-option small { display:block; }
.autocomplete-option strong { color:#26304a; font-size:11px; line-height:1.35; }
.autocomplete-option small { margin-top:4px; color:#8d95a8; font-size:9px; }
.autocomplete-state { padding:16px; color:#8991a4; font-size:10px; text-align:center; }
.autocomplete-state.error { color:#c13f53; }
.education-rule-note { margin-top:18px; padding:14px 16px; border:1px solid #e3defc; border-radius:13px; background:#f6f4ff; color:#5d52a7; font-size:11px; line-height:1.6; }
@media(max-width:620px){.autocomplete-results{position:fixed;left:16px;right:16px;top:auto;bottom:18px;max-height:46vh}}


/* ROTİN v0.7.6 — Arama listelerini kart dışına taşıyan portal düzeltmesi */
.autocomplete-results--portal {
  position: fixed !important;
  inset: auto auto auto auto;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #d9dcef;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(31, 35, 68, .22);
  z-index: 2147483000 !important;
  scrollbar-gutter: stable;
}

.autocomplete-results--portal[hidden] {
  display: none !important;
}

.autocomplete-results--portal.is-upward {
  transform-origin: bottom center;
}

.autocomplete-results--portal .autocomplete-option {
  min-height: 54px;
}

@media (max-width: 620px) {
  .autocomplete-results--portal {
    max-width: calc(100vw - 24px);
  }
}

/* ROTİN v0.8.0 — Ders ve Sınıf Ayarları */
.curriculum-heading { margin-bottom:20px; }
.curriculum-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.curriculum-stats article { background:#fff; border:1px solid #e4e7f0; border-radius:16px; padding:18px 20px; }
.curriculum-stats span { display:block; color:#8a92a7; font-size:12px; margin-bottom:6px; }
.curriculum-stats strong { color:#101a36; font-size:24px; }
.curriculum-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.curriculum-tabs a { text-decoration:none; color:#626b82; background:#fff; border:1px solid #e4e7f0; border-radius:12px; padding:11px 15px; font-weight:700; font-size:12px; }
.curriculum-tabs a.active { color:#fff; border-color:#6554e8; background:#6554e8; box-shadow:0 8px 20px rgba(101,84,232,.18); }
.settings-card { background:#fff; border:1px solid #e4e7f0; border-radius:20px; padding:24px; }
.settings-card-head { display:flex; justify-content:space-between; gap:16px; margin-bottom:20px; }
.settings-card-head h2 { margin:4px 0 6px; font-size:22px; color:#101a36; }
.settings-card-head p { margin:0; color:#8a92a7; font-size:12px; }
.assignment-filter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:12px; align-items:end; padding:16px; border:1px solid #eceef5; border-radius:15px; background:#fafaff; }
.assignment-filter label { font-size:12px; font-weight:700; color:#4d5670; }
.assignment-filter select { width:100%; margin-top:7px; border:1px solid #dfe3ed; border-radius:10px; background:#fff; padding:11px 12px; }
.assignment-context { display:flex; align-items:center; gap:8px; margin:16px 0; padding:12px 14px; border-radius:12px; background:#f5f2ff; color:#5e53a1; font-size:12px; }
.assignment-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; color:#7c859a; font-size:11px; }
.assignment-toolbar label { display:flex; align-items:center; gap:8px; font-weight:700; color:#4d5670; }
.assignment-table-wrap { overflow:auto; border:1px solid #e8eaf2; border-radius:14px; }
.assignment-table { width:100%; min-width:860px; border-collapse:collapse; }
.assignment-table th,.assignment-table td { padding:12px 14px; border-bottom:1px solid #eef0f5; text-align:left; font-size:12px; }
.assignment-table th { background:#fafbfe; color:#6d768c; font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.assignment-table tr:last-child td { border-bottom:0; }
.assignment-table tr.muted { opacity:.55; }
.assignment-table td:nth-child(2) { display:flex; align-items:center; gap:9px; }
.assignment-table td strong { color:#202a46; }
.assignment-table td small { display:block; color:#a0a7b8; margin-left:5px; }
.assignment-table input[type="number"],.assignment-table select { width:110px; border:1px solid #dfe3ed; border-radius:9px; padding:9px 10px; background:#fff; }
.assignment-table input[type="checkbox"] { width:17px; height:17px; }
.subject-dot { width:9px; height:30px; border-radius:8px; background:var(--subject-color); flex:0 0 auto; }
.input-suffix { margin-left:5px; color:#9198aa; font-size:10px; }
.settings-actions { display:flex; justify-content:flex-end; margin-top:16px; }
.entity-add-form,.entity-row { display:grid; grid-template-columns:1.1fr 1fr .65fr 1fr 1fr .55fr auto auto auto; gap:8px; align-items:center; }
.entity-add-form { padding:14px; border:1px solid #e8eaf2; border-radius:14px; background:#fafbfe; margin-bottom:14px; }
.entity-row { padding:10px 0; border-bottom:1px solid #eef0f5; }
.entity-row:last-child { border-bottom:0; }
.entity-add-form input,.entity-row input { min-width:0; width:100%; border:1px solid #dfe3ed; border-radius:9px; padding:10px; background:#fff; }
.entity-add-form.compact,.entity-row.compact { grid-template-columns:1.3fr 1fr .55fr auto auto; }
.entity-add-form.subject-add,.entity-row.subject-row { grid-template-columns:1.5fr 1fr 70px .55fr auto auto; }
.entity-add-form input[type="color"],.entity-row input[type="color"] { padding:4px; height:42px; }
.inline-check { display:flex; align-items:center; gap:6px; white-space:nowrap; font-size:11px; font-weight:700; color:#535c72; }
.inline-check input { width:16px; height:16px; margin:0; }
.entity-list { border:1px solid #e8eaf2; border-radius:14px; padding:0 14px; overflow:auto; }
.entity-list .entity-row { min-width:980px; }
.entity-list.compact-list .entity-row { min-width:650px; }
.entity-list.subject-list .entity-row { min-width:760px; }

@media (max-width:1000px) {
  .curriculum-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .assignment-filter { grid-template-columns:1fr 1fr; }
  .assignment-filter .primary-btn { width:100%; }
}
@media (max-width:620px) {
  .curriculum-stats { grid-template-columns:1fr 1fr; gap:9px; }
  .curriculum-stats article { padding:14px; }
  .curriculum-tabs { flex-wrap:nowrap; overflow:auto; padding-bottom:4px; }
  .curriculum-tabs a { white-space:nowrap; }
  .settings-card { padding:16px; }
  .assignment-filter { grid-template-columns:1fr; }
  .assignment-context { flex-wrap:wrap; }
}

/* ROTİN v0.8.0 — Dinamik ders yapısı (ana stil dosyası) */
.curriculum-selection-note { margin-bottom:16px; padding:13px 15px; border:1px solid #e3defd; border-radius:13px; background:#f7f5ff; color:#5d53a1; font-size:11px; }
.curriculum-subject-selector { display:block; }
.subject-session-group { margin-bottom:18px; }
.subject-session-group:last-child { margin-bottom:0; }
.subject-session-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; padding:10px 13px; border-radius:11px; background:#f2efff; color:#5947d8; }
.subject-session-heading span { font-size:12px; font-weight:800; }
.subject-session-heading small { font-size:10px; color:#8379c7; }
.subject-session-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.curriculum-loading { padding:24px; text-align:center; border:1px dashed #dcd8f4; border-radius:14px; color:#7f879d; font-size:12px; }
@media (max-width:900px) { .subject-session-grid { grid-template-columns:1fr; } }

/* ROTİN v0.8.3 — Öğrenci canlı durumu ve animasyonlu aktif/pasif anahtarı */
.coach-student-stats {
  margin-bottom: 16px;
}

.coach-dashboard-grid {
  align-items: start;
}

.compact-coach-hero {
  min-height: 220px;
}

.hero-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff;
  color: #513bd1;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hero-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 22, 91, .16);
}

.coach-online-ring strong {
  font-size: 32px;
}

.section-title .text-link {
  color: #5e4bd9;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.student-presence-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: -6px 0 14px;
  color: #7a8398;
  font-size: 10px;
}

.student-presence-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.presence-indicator,
.presence-badge i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.presence-indicator.online,
.presence-badge.online i {
  background: #21b77a;
  box-shadow: 0 0 0 4px rgba(33, 183, 122, .12);
}

.presence-indicator.offline,
.presence-badge.offline i {
  background: #aab1c0;
  box-shadow: 0 0 0 4px rgba(170, 177, 192, .12);
}

.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .45px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.presence-badge.online {
  background: #eaf9f2;
  color: #17845a;
  animation: rotinPresencePulse 2.2s ease-in-out infinite;
}

.presence-badge.offline {
  background: #f0f2f6;
  color: #747d90;
}

.presence-detail {
  display: block;
  margin-top: 5px;
  color: #929aad;
  font-size: 8px;
  white-space: nowrap;
}

@keyframes rotinPresencePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.animated-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 105px;
  cursor: pointer;
  user-select: none;
}

.animated-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.animated-toggle-track {
  position: relative;
  width: 46px;
  height: 25px;
  border-radius: 999px;
  background: #d5d9e3;
  box-shadow: inset 0 0 0 1px rgba(84, 91, 112, .08);
  transition: background-color .24s ease, box-shadow .24s ease;
  flex: 0 0 auto;
}

.animated-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(36, 42, 68, .22);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s ease;
}

.animated-toggle input:checked + .animated-toggle-track {
  background: linear-gradient(135deg, #4d39d1, #6b52ef);
  box-shadow: 0 0 0 4px rgba(97, 76, 226, .10);
}

.animated-toggle input:checked + .animated-toggle-track::after {
  transform: translateX(21px);
  box-shadow: 0 3px 10px rgba(36, 27, 100, .28);
}

.animated-toggle input:focus-visible + .animated-toggle-track {
  outline: 3px solid rgba(91, 72, 219, .22);
  outline-offset: 3px;
}

.animated-toggle-label {
  color: #7a8398;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .55px;
  transition: color .2s ease;
}

.animated-toggle input:checked ~ .animated-toggle-label {
  color: #4f3bc8;
}

.animated-toggle.is-loading {
  cursor: progress;
  opacity: .72;
}

.animated-toggle.is-loading .animated-toggle-track::after {
  animation: rotinToggleLoading .65s ease-in-out infinite alternate;
}

@keyframes rotinToggleLoading {
  from { opacity: .55; }
  to { opacity: 1; }
}

.live-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 13px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 16px 42px rgba(25, 30, 54, .24);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.live-toast.success { background: #21875f; }
.live-toast.error { background: #c94158; }
.live-toast.warning { background:#c77d12; }
.live-toast.info { background:#5a50cf; }
.live-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.student-live-table {
  overflow-x: auto;
}

.student-live-table table {
  min-width: 1120px;
}

@media (max-width: 900px) {
  .coach-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .compact-coach-hero {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .student-presence-legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-toast {
    right: 16px;
    bottom: 16px;
  }
}

/* v0.9.1 — okunabilir toast + büyük listeler için filtre/pagination */
.live-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}
.live-toast-stack .live-toast {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
}
.live-toast {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .005em;
  box-shadow: 0 18px 45px rgba(25,30,54,.28);
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity .2s ease, transform .2s ease;
}
.live-toast.success { background-color: #21875f !important; }
.live-toast.error { background-color: #c43d55 !important; }
.live-toast.warning { background-color: #a96508 !important; }
.live-toast.info { background-color: #5146c7 !important; }
.live-toast-icon {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
}
.live-toast-message { color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.08); }
.live-toast.show { opacity: 1; transform: translateY(0) scale(1); }

.list-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.list-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #e1e5ee;
  border-radius: 12px;
  background: #fff;
  color: #59627a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: .18s ease;
}
.list-tab b {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1efff;
  color: #5b49d9;
  font-size: 10px;
}
.list-tab:hover { border-color: #c9c2ff; color: #5140d0; transform: translateY(-1px); }
.list-tab.active { background: #5f4be8; border-color: #5f4be8; color: #fff; box-shadow: 0 9px 20px rgba(95,75,232,.16); }
.list-tab.active b { background: rgba(255,255,255,.18); color: #fff; }

.list-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(150px, .7fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e2e6ef;
  border-radius: 16px;
  background: #fff;
}
.student-list-filters { grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(125px, .65fr)) auto; }
.list-filter-bar label { display:flex; flex-direction:column; gap:6px; min-width:0; }
.list-filter-bar label > span { color:#6d758c; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.list-filter-bar input,
.list-filter-bar select {
  width:100%;
  height:40px;
  padding:0 11px;
  border:1px solid #dfe3ed;
  border-radius:11px;
  background:#fff;
  color:#242d45;
  font:inherit;
  font-size:12px;
  outline:none;
}
.list-filter-bar input:focus,
.list-filter-bar select:focus { border-color:#7b69ef; box-shadow:0 0 0 3px rgba(95,75,232,.08); }
.list-filter-actions { display:flex; align-items:center; gap:9px; min-height:40px; }
.list-filter-actions .secondary-btn { min-height:40px; }
.list-filter-actions .link-btn { white-space:nowrap; }
.list-result-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 2px 10px; color:#848ba0; font-size:11px; }
.list-result-meta strong { color:#303950; font-size:12px; }
.responsive-table-card { overflow-x:auto; }
.list-pagination {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  margin-top:14px;
}
.list-pagination > a:first-child { justify-self:start; }
.list-pagination > a:last-child { justify-self:end; }
.list-pagination > div { display:flex; align-items:baseline; gap:5px; color:#7a8298; font-size:11px; }
.list-pagination > div strong { color:#4e3ed0; font-size:14px; }

@media (max-width: 1180px) {
  .list-filter-bar,
  .student-list-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-search-field { grid-column:1 / -1; }
  .list-filter-actions { grid-column:1 / -1; }
}
@media (max-width: 620px) {
  .live-toast-stack { right:16px; bottom:16px; width:calc(100vw - 32px); }
  .list-filter-bar,
  .student-list-filters { grid-template-columns:1fr; }
  .list-search-field,
  .list-filter-actions { grid-column:auto; }
  .list-result-meta { align-items:flex-start; flex-direction:column; gap:3px; }
  .list-pagination { grid-template-columns:1fr; justify-items:center; }
  .list-pagination > a:first-child,
  .list-pagination > a:last-child { justify-self:center; }
}

/* ROTİN v0.12.4 — canlı takip ölçekleme + birincil sorumluluk görünümü */
.admin-live-users-card .section-title { align-items:flex-start; }
.section-helper { display:block; margin-top:5px; color:#8a91a7; font-size:10px; font-weight:600; }
.active-users-scroll { max-height:520px; overflow-y:auto; padding-right:6px; scrollbar-gutter:stable; }
.active-users-scroll::-webkit-scrollbar { width:8px; }
.active-users-scroll::-webkit-scrollbar-thumb { background:#d7d2f6; border-radius:999px; }
.active-users-scroll::-webkit-scrollbar-track { background:transparent; }

.coach-student-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.coach-live-section-title { align-items:center; }
.coach-live-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.coach-live-actions select { min-height:38px; padding:0 34px 0 12px; border:1px solid #ddd9f7; border-radius:11px; background:#fff; color:#4e456f; font-size:11px; font-weight:700; outline:none; }
.coach-live-actions select:focus { border-color:#7562eb; box-shadow:0 0 0 3px rgba(95,75,232,.08); }
.active-user-name-line { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.student-name-with-responsibility { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.student-responsibility-badge { display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:999px; font-size:9px; font-weight:800; white-space:nowrap; }
.student-responsibility-badge.primary { color:#6a48d7; background:#eee9ff; border:1px solid #d9cffd; }
.student-responsibility-badge.support { color:#657085; background:#f3f5f8; border:1px solid #e1e5eb; }
.student-list-filters.has-responsibility-filter { grid-template-columns:minmax(220px,1.35fr) repeat(5,minmax(112px,.62fr)) auto; }

@media (max-width:1100px) {
  .coach-student-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .student-list-filters.has-responsibility-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .coach-student-stats { grid-template-columns:1fr; }
  .coach-live-actions { width:100%; align-items:stretch; }
  .coach-live-actions select { flex:1; }
  .active-users-scroll { max-height:440px; }
  .student-list-filters.has-responsibility-filter { grid-template-columns:1fr; }
}

/* v0.12.5 - Birincil sorumluluk görünürlüğü */
.detail-contact-name-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.detail-contact-name-line strong{min-width:0}.detail-relation-person-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.detail-relation-person-head .student-responsibility-badge{font-size:8px;min-height:20px;padding:0 7px}

/* v0.12.6 — Kurum öğrenci personel/sorumluluk filtreleri */
.institution-student-assignment-overview{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.institution-assignment-summary-card{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:13px 14px;
  border:1px solid #e2e3f2;
  border-radius:15px;
  background:#fff;
  color:#667087;
  text-decoration:none;
  transition:.18s ease;
}
.institution-assignment-summary-card:hover{
  border-color:#cfc7fb;
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(59,47,140,.06);
}
.institution-assignment-summary-card.active{
  border-color:#705cf0;
  box-shadow:0 0 0 3px rgba(95,75,232,.08);
  background:#faf9ff;
}
.institution-assignment-summary-card.attention:not(.active){
  border-color:#f0d7c1;
  background:#fffaf6;
}
.institution-assignment-summary-card span{
  color:#697187;
  font-size:10px;
  font-weight:800;
}
.institution-assignment-summary-card strong{
  color:#101b38;
  font-size:24px;
  line-height:1.05;
}
.institution-assignment-summary-card small{
  color:#949bae;
  font-size:9px;
  line-height:1.35;
}
.student-list-filters.has-assignment-filter{
  grid-template-columns:minmax(220px,1.35fr) repeat(5,minmax(112px,.62fr)) auto;
}
.institution-assignment-cell{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  min-width:165px;
}
.institution-assignment-cell small{
  color:#8c94a8;
  font-size:9px;
  line-height:1.35;
}
.institution-assignment-state{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:0 8px;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}
.institution-assignment-state.primary{
  color:#6246cf;
  border:1px solid #d8cffb;
  background:#eeeaff;
}
.institution-assignment-state.warning{
  color:#9a6500;
  border:1px solid #f1ddb3;
  background:#fff6df;
}
.institution-assignment-state.danger{
  color:#bd4559;
  border:1px solid #f3cdd4;
  background:#fff0f3;
}
@media (max-width:1280px){
  .institution-student-assignment-overview{grid-template-columns:repeat(3,minmax(0,1fr));}
  .student-list-filters.has-assignment-filter{grid-template-columns:repeat(3,minmax(0,1fr));}
  .student-list-filters.has-assignment-filter .list-search-field{grid-column:1 / -1;}
}
@media (max-width:760px){
  .institution-student-assignment-overview{grid-template-columns:1fr 1fr;}
  .student-list-filters.has-assignment-filter{grid-template-columns:1fr;}
  .student-list-filters.has-assignment-filter .list-search-field{grid-column:auto;}
}
@media (max-width:520px){
  .institution-student-assignment-overview{grid-template-columns:1fr;}
}

/* v0.12.7 — Kullanıcı Yönetimi kurum filtresi */
.user-list-filters{
  grid-template-columns:minmax(230px,1.5fr) minmax(170px,.85fr) minmax(145px,.7fr) minmax(120px,.55fr) auto;
}
@media (max-width:1180px){
  .user-list-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
  .user-list-filters .list-search-field{grid-column:1 / -1;}
  .user-list-filters .list-filter-actions{grid-column:1 / -1;}
}
@media (max-width:680px){
  .user-list-filters{grid-template-columns:1fr;}
  .user-list-filters .list-search-field,
  .user-list-filters .list-filter-actions{grid-column:auto;}
}


/* v0.12.8 — kurum öğrenci tablosu kolon okunabilirliği */
.student-live-table .student-setup-col{
  min-width:145px;
  width:145px;
}
.student-live-table .student-setup-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  white-space:nowrap;
  line-height:1.2;
}
.student-live-table th.student-setup-col{
  white-space:nowrap;
}
@media (min-width:1100px){
  .student-live-table table{ min-width:1280px; }
}
