/* Nice Select özel stilleri - Site geneli */
.nice-select {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-weight: normal;
  outline: none;
  position: relative;
  text-align: left !important;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  white-space: nowrap;
  width: 100%;
}

/* Özel NiceSelect stilleri - Tema spesifik */
.nice-select {
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-md, 6px);
  height: var(--input-height, 48px);
  line-height: calc(var(--input-height, 48px) - 4px); /* 4px border toplam */
  padding: 0 calc(var(--spacing-3, 12px) + 12px) 0 var(--spacing-3, 12px);
  font-size: var(--font-size-base, 1rem);
  transition: all 0.25s;
  color: #FFF!important;
  background-color: var(--bg-secondary);
}

.nice-select:hover {
  border-color: var(--border-hover-color, #d1d5db);
}

.nice-select:active, 
.nice-select.open, 
.nice-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.nice-select:after {
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  content: '';
  display: block;
  height: 8px;
  margin-top: -5px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform-origin: 66% 66%;
  transform: rotate(45deg);
  transition: all 0.2s ease;
  width: 8px;
}

.nice-select.open:after {
  transform: rotate(-135deg);
}

.nice-select.open .list {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.nice-select.disabled {
  border-color: var(--border-light-color, #e5e7eb);
  color: var(--text-muted);
  pointer-events: none;
}

.nice-select.disabled:after {
  border-color: var(--text-muted);
}

.nice-select .list {
  background-color: var(--white, #fff);
  border-radius: var(--radius-md, 6px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 4px;
  opacity: 0;
  overflow: hidden;
  padding: var(--spacing-3, 12px) 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform-origin: 50% 0;
  transform: scale(0.75) translateY(-10px);
  transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  z-index: 1000;
  min-width: 160px;
  width: auto;
}

.nice-select .option {
  cursor: pointer;
  font-weight: 400;
  line-height: 35px;
  list-style: none;
  min-height: 35px;
  outline: none;
  padding-left: 18px;
  padding-right: 18px;
  text-align: left;
  transition: all 0.2s;
  color: #FFF!important;
}

.nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus {
  background-color: var(--primary-10, rgba(0, 113, 235, 0.1));
}

.nice-select .option.selected {
  font-weight: 600;
  color: var(--primary);
}

.nice-select .option.disabled {
  background-color: transparent;
  color: var(--text-muted);
  cursor: default;
}

/* Search bar specific styles - yeni yapı için */
.search-select-container .nice-select {
  height: 50px;
  line-height: 48px;
  background-color: var(--bg-light);
  border-radius: 0;
  border: none;
  width: 100%;
  padding-left: 15px;
  padding-right: 30px;
  position: relative;
  z-index: 100;
}

.search-select-container .nice-select:after {
  right: 15px;
}

.search-select-container .nice-select .current {
  color: #FFF!important;
  font-weight: 400;
}

.search-select-container .nice-select .list {
  width: 100%;
  margin-top: 5px;
  z-index: 1001;
}

.search-select-container .nice-select:hover,
.search-select-container .nice-select:focus,
.search-select-container .nice-select.open {
  background-color: var(--bg-secondary);
  box-shadow: none;
}

/* Dark mode support */
html.dark-mode .nice-select {
  background-color: var(--dark-secondary);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

html.dark-mode .nice-select:hover {
  border-color: var(--border-dark-hover);
}

html.dark-mode .nice-select .list {
  background-color: var(--dark-secondary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

html.dark-mode .nice-select .option {
  color: var(--text-dark);
}

html.dark-mode .nice-select .option:hover, 
html.dark-mode .nice-select .option.focus, 
html.dark-mode .nice-select .option.selected.focus {
  background-color: var(--dark-hover);
}

html.dark-mode .nice-select .option.selected {
  color: var(--primary-light);
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .search-bar .nice-select {
    min-width: 120px;
  }
  
  .nice-select .list {
    min-width: 100%;
  }
}

/* NiceSelect with icons */
.nice-select.has-icon {
  padding-left: 42px;
}

.input-icon + .nice-select {
  padding-left: 42px;
}

/* Form variations */
.form-floating .nice-select {
  height: 58px;
  line-height: 54px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.input-group .nice-select {
  border-radius: 0;
}

.input-group .nice-select:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.input-group .nice-select:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* Size variations */
.nice-select.form-select-lg {
  height: 56px;
  line-height: 52px;
  font-size: 1.125rem;
}

.nice-select.form-select-sm {
  height: 40px;
  line-height: 36px;
  font-size: 0.875rem;
}

/* Multiple select */
.nice-select.multiple {
  height: auto;
  min-height: var(--input-height, 48px);
  line-height: normal;
  padding: 8px 12px;
}

.nice-select.multiple .current {
  display: none;
}

.nice-select.multiple .multiple-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nice-select.multiple .multiple-options .item {
  background-color: var(--primary-10);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.nice-select.multiple .multiple-options .item .remove {
  margin-left: 6px;
  color: var(--primary);
  cursor: pointer;
}

/* Search box */
.nice-select-search-box {
  padding: 0 12px 8px;
}

.nice-select-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.nice-select-search:focus {
  border-color: var(--primary);
  outline: none;
}

/* Selected values when closed */
.nice-select .current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
} 