/* AcademyOS Global Dropdown Design System */
.aos-select-wrapper {
  position: relative;
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  margin-bottom: 0;
}

.aos-select-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.aos-select-display:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.aos-select-display:focus, .aos-select-display.aos-open {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: rgba(15, 23, 42, 0.7);
}

.aos-select-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aos-select-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  color: #10b981;
}

.aos-select-display.aos-open .aos-select-arrow {
  transform: rotate(180deg);
}

.aos-select-panel {
  position: fixed;
  z-index: 999999;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(9, 17, 25, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.1);
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.4) transparent;
  display: none;
}

.aos-select-panel.aos-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aos-select-panel::-webkit-scrollbar { width: 6px; }
.aos-select-panel::-webkit-scrollbar-track { background: transparent; }
.aos-select-panel::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.4); border-radius: 3px; }
.aos-select-panel::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.7); }

.aos-select-option {
  padding: 12px 16px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  word-break: break-word;
}

.aos-select-option:first-child { border-top-left-radius: 11px; border-top-right-radius: 11px; }
.aos-select-option:last-child { border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; }

.aos-select-option:hover, .aos-select-option.aos-highlighted {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.aos-select-option.aos-selected {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-weight: 600;
}

.aos-select-option.aos-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.aos-select-empty {
  padding: 16px;
  color: #94a3b8;
  text-align: center;
  font-size: 0.9rem;
}

/* Multi-select Checkboxes & Tags */
.aos-checkbox {
  width: 16px; height: 16px; border: 1px solid rgba(16, 185, 129, 0.5); border-radius: 4px;
  margin-right: 12px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; flex-shrink: 0;
}
.aos-checkbox.checked { background: #10b981; border-color: #10b981; }
.aos-checkbox.checked::after {
  content: ''; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}
.aos-multi-tags { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.aos-tag {
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 6px;
  padding: 2px 10px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; color: #e2e8f0;
}
.aos-tag-remove { cursor: pointer; color: #10b981; font-weight: bold; font-size: 1.2rem; line-height: 1; transition: color 0.2s; }
.aos-tag-remove:hover { color: #fff; }

/* Form Resets */
.form-group .aos-select-wrapper { margin-top: 6px; }

/* Mobile Responsiveness */
@media (max-width: 768px) { .aos-select-panel { max-height: 45vh; } }