/* Ekip takvimi — termin sayfası ile aynı genişlik ve kimlik */
.musaitlik-page .nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mus-nav-links {
  flex: 1;
  justify-content: center;
}

.mus-hero {
  padding-bottom: 28px;
}

.mus-flow {
  padding-bottom: 80px;
}

.mus-member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .mus-member-grid {
    grid-template-columns: 1fr;
  }
}

.mus-member-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 16px 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, transform 0.2s, box-shadow 0.3s;
  font-family: inherit;
  color: inherit;
}

.mus-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue, #0073af), var(--sky, #7ed4f7));
  opacity: 0;
  transition: opacity 0.3s;
}

.mus-member-card:hover {
  border-color: rgba(0, 153, 214, 0.4);
  background: rgba(0, 153, 214, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 115, 175, 0.18);
}

.mus-member-card:hover::before,
.mus-member-card.selected::before {
  opacity: 1;
}

.mus-member-card.selected {
  border-color: var(--bright, #3db8f5);
  background: rgba(0, 153, 214, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 153, 214, 0.3), 0 12px 40px rgba(0, 115, 175, 0.2);
}

.mus-member-photo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.mus-member-name {
  display: block;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white, #fff);
  line-height: 1.3;
}

.mus-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .mus-workspace {
    grid-template-columns: 1fr;
  }
}

.mus-panel {
  min-width: 0;
}

.mus-panel .termin-calendar-wrap {
  margin-top: 0;
}

.mus-list-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mus-filter-btn {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(180, 220, 245, 0.55);
  transition: border-color 0.22s, background 0.22s, color 0.22s;
}

.mus-filter-btn:hover {
  border-color: rgba(0, 153, 214, 0.35);
  color: rgba(180, 220, 245, 0.85);
}

.mus-filter-btn.active {
  border-color: rgba(0, 153, 214, 0.45);
  background: rgba(0, 153, 214, 0.12);
  color: var(--bright, #3db8f5);
  box-shadow: 0 0 0 1px rgba(0, 153, 214, 0.15);
}

.mus-list-inner {
  min-height: 120px;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 153, 214, 0.35) transparent;
}

.mus-list-inner::-webkit-scrollbar {
  width: 6px;
}

.mus-list-inner::-webkit-scrollbar-track {
  background: transparent;
}

.mus-list-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 153, 214, 0.3);
  border-radius: 3px;
}

.mus-list-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 153, 214, 0.45);
}

.musaitlik-range-preview {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--bright, #3db8f5);
  min-height: 22px;
  margin: 14px 0 16px;
}

/* Takvim altı — site geneli btn-fill / btn-out (termin ile aynı) */
.mus-cal-actions {
  margin-top: 8px;
  justify-content: flex-start;
}

.musaitlik-page button.btn-fill,
.musaitlik-page button.btn-out {
  appearance: none;
  -webkit-appearance: none;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
}

.musaitlik-page button.btn-fill {
  background: var(--blue, #0073af);
  color: var(--white, #fff);
  border: none;
  transition: background 0.22s, transform 0.2s, box-shadow 0.22s;
}

.musaitlik-page button.btn-fill:hover:not(:disabled) {
  background: var(--bright, #3db8f5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 153, 214, 0.25);
}

.musaitlik-page button.btn-fill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.musaitlik-page button.btn-out {
  background: transparent;
  border: 1px solid rgba(0, 153, 214, 0.32);
  color: var(--sky, #7ed4f7);
  transition: border-color 0.22s, background 0.22s, transform 0.2s;
}

.musaitlik-page button.btn-out:hover {
  border-color: var(--bright, #3db8f5);
  background: rgba(0, 153, 214, 0.08);
  transform: translateY(-2px);
}

.musaitlik-entry {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.musaitlik-entry.is-editing {
  border-color: rgba(0, 153, 214, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 153, 214, 0.2);
}

.musaitlik-entry-dates {
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 420px) {
  .musaitlik-entry-dates {
    font-size: 12px;
  }
}

.musaitlik-entry-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.musaitlik-entry-del {
  flex-shrink: 0;
  margin-left: 4px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 80, 80, 0.25);
  background: rgba(255, 80, 80, 0.08);
  color: #ff8a8a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.musaitlik-entry-del:hover {
  background: rgba(255, 80, 80, 0.18);
}

.musaitlik-entry-del svg {
  width: 16px;
  height: 16px;
}

.musaitlik-empty {
  text-align: center;
  padding: 28px 16px;
  color: rgba(180, 220, 245, 0.4);
  font-size: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.musaitlik-warn-box {
  background: rgba(255, 180, 60, 0.1);
  border: 1px solid rgba(255, 180, 60, 0.35);
  border-radius: 14px;
  padding: 16px 18px;
  color: #ffd89a;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.55;
}

.mus-key-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.mus-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.mus-key-row .termin-form-input {
  flex: 1;
  min-width: 200px;
}

.musaitlik-cal-day.range-start,
.musaitlik-cal-day.range-end,
.musaitlik-cal-day.in-range {
  background: rgba(0, 153, 214, 0.18);
  border-color: rgba(0, 153, 214, 0.35);
  color: #fff;
}

.musaitlik-cal-day.blocked-self {
  background: rgba(255, 160, 60, 0.12);
  border-color: rgba(255, 160, 60, 0.3);
}

.musaitlik-cal-day.blocked-self::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb347;
}

.musaitlik-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(10, 30, 55, 0.95);
  border: 1px solid rgba(0, 153, 214, 0.35);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.musaitlik-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.mus-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 13, 26, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mus-modal-overlay[hidden] {
  display: none;
}

.mus-modal {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(165deg, rgba(12, 35, 58, 0.98), rgba(5, 18, 35, 0.98));
  border: 1px solid rgba(0, 153, 214, 0.35);
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.mus-modal-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.mus-modal-sub {
  font-size: 14px;
  color: rgba(180, 220, 245, 0.65);
  margin-bottom: 24px;
  line-height: 1.5;
}

.mus-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mus-modal-actions .btn-fill,
.mus-modal-actions .btn-out {
  min-width: 120px;
}

.mus-modal-primary.mus-modal-danger {
  background: rgba(180, 50, 50, 0.9);
}

.mus-modal-primary.mus-modal-danger:hover {
  background: rgba(220, 70, 70, 1);
  box-shadow: 0 8px 24px rgba(200, 60, 60, 0.35);
}

.mus-workspace.is-locked {
  opacity: 0.35;
  pointer-events: none;
}
