/* Instructor Tools Shared Styles */

.tool-section-card{
  background:rgba(255,255,255,.82);
  border:1px solid rgba(15,23,42,.06);
  border-radius:28px;
  box-shadow:0 18px 44px rgba(15,23,42,.08);
  backdrop-filter:blur(16px);
}

.tool-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
}

.tool-card{
  overflow:hidden;
  min-height:260px;
  position:relative;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition:all .25s ease;
  cursor:pointer;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(15,23,42,.06);
  border-radius:26px;
  box-shadow:0 18px 44px rgba(15,23,42,.07);
}

.tool-card:hover{
  transform:translateY(-6px) scale(1.03);
  background:#fff;
  box-shadow:0 20px 50px rgba(15,23,42,.12);
}

.tool-body{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}

.tool-tag{
  display:inline-flex;
  align-self:flex-start;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

@media (max-width:1200px){
  .tool-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:900px){
  .tool-grid{
    grid-template-columns:1fr;
  }
}
/* ================================
   Create Lecture Modal
================================ */

.tk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(14px);
}

.tk-modal-backdrop.is-open {
  display: flex;
}

.tk-create-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 28px;
}

.tk-create-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.tk-create-modal-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #2563eb;
}

.tk-create-modal-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.tk-create-modal-header p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.tk-modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tk-modal-close:hover {
  background: rgba(15, 23, 42, 0.1);
  transform: scale(1.05);
}

.tk-create-modal-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tk-modal-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-modal-field > span {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.tk-modal-field input[type="text"] {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 18px;
  padding: 0 16px;
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.tk-modal-field input[type="text"]:focus {
  border-color: rgba(37, 99, 235, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.tk-modal-tool-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tk-modal-tool-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.76);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tk-modal-tool-option:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.tk-modal-tool-option input {
  margin-top: 4px;
  accent-color: #2563eb;
}

.tk-modal-tool-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #0f172a;
}

.tk-modal-tool-option p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.tk-create-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.tk-modal-secondary-btn,
.tk-modal-primary-btn {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tk-modal-secondary-btn {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.tk-modal-secondary-btn:hover {
  background: rgba(15, 23, 42, 0.1);
}

.tk-modal-primary-btn {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.tk-modal-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

@media (max-width: 640px) {
  .tk-create-modal {
    border-radius: 24px;
    padding: 22px;
  }

  .tk-create-modal-header h2 {
    font-size: 24px;
  }

  .tk-create-modal-footer {
    flex-direction: column-reverse;
  }

  .tk-modal-secondary-btn,
  .tk-modal-primary-btn {
    width: 100%;
  }
}
