@import url('update-2.17.12.css?v=2.17.12');
/* 2.17.8 · Sabit gezinme, ortak sayfalama ve tutarlı hareket sistemi */
@media (min-width: 781px) {
  .app-shell,
  .portal-shell {
    display: block;
    min-height: 100dvh;
  }

  .sidebar,
  .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 246px;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .main-content,
  .portal-main {
    width: auto;
    min-width: 0;
    margin-left: 246px;
  }
}

.stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1250px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 470px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.ui-page-hidden {
  display: none !important;
}

.ui-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 10px 12px;
  border: 1px solid #e2e6ef;
  border-radius: 12px;
  background: #f8f9fc;
}

.ui-pagination-info {
  color: #68728a;
  font-size: 12px;
  font-weight: 700;
}

.ui-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.ui-pagination button {
  min-width: 36px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d8ddea;
  border-radius: 8px;
  color: #34405d;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.ui-pagination button:hover:not(:disabled) {
  border-color: #6558e8;
  color: #5145cf;
  transform: translateY(-1px);
}

.ui-pagination button.is-current {
  border-color: #6558e8;
  color: #fff;
  background: #6558e8;
}

.ui-pagination button:disabled {
  opacity: .42;
  cursor: default;
}

/* Açılır arayüzlerin hepsi aynı yumuşak hareket dilini kullanır. */
.notification-popup,
.emoji-picker,
.modal,
.modal-backdrop,
.sidebar-dismiss,
.right-drawer > div,
.toast {
  will-change: opacity, transform;
}

@media (max-width: 780px) {
  .ui-pagination {
    align-items: stretch;
  }

  .ui-pagination-info {
    width: 100%;
    text-align: center;
  }

  .ui-pagination-actions {
    justify-content: center;
    width: 100%;
  }
}

@media print {
  .ui-pagination {
    display: none !important;
  }

  .ui-page-hidden {
    display: revert !important;
  }

  tr.ui-page-hidden {
    display: table-row !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-pagination button {
    transition-duration: .01ms !important;
  }
}

/* İçerik kataloğu: thumbnail ve modüle sığan kart görünümü */
#resourcesTable,
#assignmentsTable {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#resourcesView,
#resourcesView .resource-admin-grid,
#resourcesView .panel-card,
#resourcesView .resource-type-section,
#resourcesView .resource-catalog-grid,
#resourcesView .resource-assignment-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#resourcesView .resource-admin-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

#resourcesView .panel-card {
  overflow-x: hidden;
}

.resource-type-section {
  min-width: 0;
  margin-top: 22px;
}

.resource-catalog-grid,
.resource-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 15px;
  min-width: 0;
}

.resource-catalog-card,
.resource-assignment-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid #e3e7f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 26px rgb(23 32 58 / 7%);
}

.resource-catalog-card {
  flex-direction: column;
}

.resource-video-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #fff;
  background: #171c2d center / cover no-repeat;
  text-decoration: none;
}

.resource-video-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 55%));
  transition: background-color .25s ease;
}

.resource-video-thumbnail i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 38px;
  border-radius: 11px;
  background: #e5232d;
  box-shadow: 0 8px 24px rgb(0 0 0 / 32%);
  font-style: normal;
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}

.resource-video-thumbnail span {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 850;
}

.resource-video-thumbnail:hover i {
  transform: translate(-50%, -50%) scale(1.09);
}

.resource-type-cover {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #6558e8, #5145c9);
}

.resource-type-cover.test {
  background: linear-gradient(135deg, #16835f, #26a477);
}

.resource-type-cover i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgb(255 255 255 / 18%);
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.resource-type-cover span {
  font-size: 13px;
  font-weight: 850;
}

.resource-catalog-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
}

.resource-catalog-copy h5 {
  display: -webkit-box;
  min-height: 40px;
  margin: 11px 0 7px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-catalog-copy > p {
  display: -webkit-box;
  min-height: 35px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #68728a;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #edf0f5;
  color: #7a8297;
  font-size: 10px;
}

.resource-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.resource-card-actions .small-btn,
.resource-card-actions .primary-btn,
.resource-card-actions .status-badge {
  max-width: 100%;
  white-space: normal;
}

.resource-card-actions a {
  text-decoration: none;
}

.resource-assignment-card {
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.resource-assignment-card h4,
.resource-assignment-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.resource-assignment-card small {
  flex: 1;
  color: #68728a;
  line-height: 1.5;
}

.resource-assignment-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
}

.resource-assignment-card time {
  color: #7a8297;
  font-size: 10px;
}

@media (max-width: 560px) {
  .resource-catalog-grid,
  .resource-assignment-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
