/* session-year-switcher.css */
.sys-dropdown-wrapper {
  position: relative;
  display: inline-block;
  /* Alignment with other nav items */
}

.sys-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  cursor: pointer;
  z-index: 20;
}

.sys-trigger-btn:hover {
  background-color: #f8fafc;
}

.sys-icon-container {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
}

.sys-text-container {
  text-align: left;
  line-height: 1;
}

.sys-label {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sys-value {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

.sys-arrow {
  color: #94a3b8;
  transition: transform 0.2s;
}

.sys-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  z-index: 50;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.sys-dropdown-menu.show {
  display: flex;
}

.sys-dropdown-menu.sys-w-double {
  width: 352px;
}

.sys-dropdown-menu.sys-w-single {
  width: 26rem;
}

.sys-split-container {
  display: grid;
  grid-template-columns: 1fr;
}

.sys-dropdown-menu.sys-w-double .sys-split-container {
  grid-template-columns: 1fr 1fr;
}

.sys-col-left {
  padding: 14px;
}

.sys-col-right {
  padding: 14px;
  border-left: 1px solid #f1f5f9;
  display: none;
}

.sys-dropdown-menu.sys-w-double .sys-col-right {
  display: block;
}

.sys-col-title {
  display: block;
  padding: 0 8px 6px;
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sys-list-container {
  max-height: 192px;
  overflow-y: auto;
}

.sys-list-container::-webkit-scrollbar {
  width: 4px;
}

.sys-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.sys-list-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.sys-option-btn {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  color: #475569;
}

.sys-option-btn:hover {
  background-color: #f8fafc;
}

.sys-option-btn.active {
  background-color: #eef2ff;
  color: #4338ca;
}

.sys-option-badge {
  font-size: 8px;
  background-color: #e2e8f0;
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 4px;
  border-radius: 4px;
}

.sys-footer {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sys-btn-cancel {
  padding: 6px 12px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.sys-btn-cancel:hover {
  color: #334155;
  background-color: #f1f5f9;
}

.sys-btn-apply {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  background-color: #4f46e5;
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sys-btn-apply:hover {
  background-color: #4338ca;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sys-btn-apply:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.sys-spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: sys-spin 1s linear infinite;
  display: inline-block;
}

@keyframes sys-spin {
  to {
    transform: rotate(360deg);
  }
}