.mount-view {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-background-secondary) 0%, var(--color-background-tertiary) 100%);
  padding: 0;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mount-view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

:root.dark .mount-view,
:root.auto.dark .mount-view {
  background: linear-gradient(135deg, var(--color-background-primary) 0%, var(--color-background-secondary) 100%);
}

:root.dark .mount-view::before,
:root.auto.dark .mount-view::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  opacity: 0.3;
}

.mount-header {
  position: relative;
  z-index: 1;
  padding: 24px 28px 20px;
  background: var(--color-surface-elevated);
  border-bottom: 1px solid var(--color-border);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.header-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
  margin: 0;
}

.stats-overview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-item.success .stat-value {
  color: var(--color-success);
}

.stat-item.error .stat-value {
  color: var(--color-danger);
}

.stat-item.neutral .stat-value {
  color: var(--color-text-secondary);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
}

.service-indicator.active .indicator-dot {
  background: var(--color-success);
}

.indicator-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.service-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.service-toggle:hover {
  background: var(--color-accent);
  color: white;
}

.service-toggle.active {
  background: var(--color-warning);
  color: white;
}

.service-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(165, 138, 233, 0.8);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: translateY(0);
}

.controls-section {
  position: relative;
  z-index: 1;
  padding: 20px 28px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-background-primary);
  font-size: 14px;
  color: var(--color-text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-filter {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  font-size: 13px;
  cursor: pointer;
}

.status-filter:focus {
  outline: none;
  border-color: var(--color-accent);
}

.refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.refresh-btn:hover:not(:disabled) {
  background: var(--color-background-secondary);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.refresh-icon {
  width: 16px;
  height: 16px;
}

.error-alert {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: rgba(255, 59, 48, 0.1);
  border-bottom: 1px solid rgba(255, 59, 48, 0.2);
  color: var(--color-danger);
}

.alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.alert-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.alert-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.alert-close:hover {
  background: rgba(255, 59, 48, 0.1);
}

.close-icon {
  width: 14px;
  height: 14px;
}

.configs-container {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 28px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}

.empty-content {
  text-align: center;
  max-width: 400px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  color: var(--color-text-tertiary);
  margin: 0 auto 24px;
}

.empty-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 8px;
}

.empty-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
  line-height: 1.5;
}

.empty-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(165, 138, 233, 0.8);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.empty-action-btn:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.config-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.config-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-secondary);
}

.config-card.mounted {
  border-color: var(--color-success);
  background: rgba(52, 199, 89, 0.05);
}

.config-card.error {
  border-color: var(--color-danger);
  background: rgba(255, 59, 48, 0.05);
}

.config-card.loading {
  background: rgba(0, 122, 255, 0.05);
  border-color: var(--color-accent);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.config-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.config-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.config-details {
  flex: 1;
  min-width: 0;
}

.config-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config-url {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'SF Mono', Consolas, monospace;
}

.config-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-background-secondary);
  flex-shrink: 0;
}

.status-icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
}

.status-icon.success {
  color: var(--color-success);
}

.status-icon.error {
  color: var(--color-danger);
}

.card-meta {
  margin-bottom: 20px;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-tag.auto {
  background: var(--color-accent);
  color: white;
}

.meta-tag.clickable-mount-point {
  cursor: pointer;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  border: 1px solid var(--color-primary-200);
  gap: 4px;
}

.meta-tag.clickable-mount-point:hover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-300);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meta-tag.clickable-mount-point:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mount-point-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

:root.dark .meta-tag.clickable-mount-point,
:root.auto.dark .meta-tag.clickable-mount-point {
  background: var(--color-primary-900);
  color: var(--color-primary-300);
  border-color: var(--color-primary-700);
}

:root.dark .meta-tag.clickable-mount-point:hover,
:root.auto.dark .meta-tag.clickable-mount-point:hover {
  background: var(--color-primary-800);
  border-color: var(--color-primary-600);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-group {
  flex: 1;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.action-btn.primary {
  background: var(--color-success);
  color: white;
}

.action-btn.primary:hover:not(:disabled) {
  background: #28a745;
  transform: translateY(-1px);
}

.action-btn.warning {
  background: var(--color-warning);
  color: white;
}

.action-btn.warning:hover:not(:disabled) {
  background: #e68900;
  transform: translateY(-1px);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary-actions {
  display: flex;
  gap: 8px;
}

.secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.secondary-btn:hover:not(:disabled) {
  background: var(--color-background-secondary);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.secondary-btn.danger:hover:not(:disabled) {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.config-modal {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.config-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.field-input,
.field-select {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  font-size: 14px;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.field-input::placeholder {
  color: var(--color-text-tertiary);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.checkbox-label {
  font-size: 14px;
  color: var(--color-text-primary);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--color-border);
}

.cancel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.cancel-btn:hover {
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
}

.save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.save-btn:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.flags-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flag-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  font-size: 13px;
}

.flag-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.flag-input::placeholder {
  color: var(--color-text-tertiary);
}

.remove-flag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background-primary);
  color: var(--color-text-tertiary);
  cursor: pointer;
}

.remove-flag-btn:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}

.remove-flag-btn .btn-icon {
  width: 14px;
  height: 14px;
}

.add-flag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  cursor: pointer;
  margin-top: 4px;
}

.add-flag-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 122, 255, 0.05);
}

.add-flag-btn .btn-icon {
  width: 14px;
  height: 14px;
}

/* Quick Flag Selector Styles */
.flags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quick-flags-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.quick-flags-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 122, 255, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.quick-flags-btn .btn-icon {
  width: 16px;
  height: 16px;
}

.flag-selector-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.flag-selector-popup {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flag-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-secondary);
}

.flag-selector-header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.close-selector-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.close-selector-btn:hover {
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
}

.close-selector-btn .btn-icon {
  width: 18px;
  height: 18px;
}

.flag-selector-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flag-selector-content::-webkit-scrollbar {
  display: none;
}
.flag-selector-help {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.flag-selector-help::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.flag-selector-help p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.5;
}

.flag-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 4px;
  scroll-behavior: smooth;
}

.flag-categories::-webkit-scrollbar {
  width: 8px;
}

.flag-categories::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
  border-radius: 4px;
}

.flag-categories::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
  border: 2px solid var(--color-background-secondary);
}

.flag-categories::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

.flag-category {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-background-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flag-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.category-header {
  background: var(--color-background-secondary);
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-header h5 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
}

.category-flags {
  display: flex;
  flex-direction: column;
}

.flag-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: none;
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.flag-option:last-child {
  border-bottom: none;
}

.flag-option:hover {
  background: var(--color-background-secondary);
  transform: translateX(2px);
}

.flag-option.selected,
.flag-option.in-config {
  background: rgba(34, 197, 94, 0.06);
  border-left-color: #22c55e;
  color: var(--color-text-primary);
}

.flag-option.selected:hover,
.flag-option.in-config:hover {
  background: rgba(34, 197, 94, 0.1);
  transform: translateX(2px);
}

.flag-checkbox {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-background-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.custom-checkbox:hover {
  border-color: #22c55e;
}

.custom-checkbox.checked {
  background: #22c55e;
  border-color: #22c55e;
}

.check-icon {
  width: 14px;
  height: 14px;
  color: white;
  stroke-width: 3px;
}

.flag-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #22c55e;
}

.flag-selector-help {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.flag-selector-help p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
}

.flag-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.flag-code {
  font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  background: var(--color-background-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-accent);
  display: inline-block;
  max-width: fit-content;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.flag-description {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

:root.dark .flag-selector-popup,
:root.auto.dark .flag-selector-popup {
  background: var(--color-background-tertiary);
  border-color: var(--color-border);
}

:root.dark .flag-selector-header,
:root.auto.dark .flag-selector-header {
  background: var(--color-background-secondary);
  border-color: var(--color-border);
}

:root.dark .flag-category,
:root.auto.dark .flag-category {
  background: var(--color-background-primary);
  border-color: var(--color-border);
}

:root.dark .flag-category:hover,
:root.auto.dark .flag-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

:root.dark .flag-option,
:root.auto.dark .flag-option {
  background: var(--color-background-primary);
  border-color: var(--color-border);
}

:root.dark .flag-option:hover,
:root.auto.dark .flag-option:hover {
  background: var(--color-background-secondary);
}

:root.dark .flag-code,
:root.auto.dark .flag-code {
  background: var(--color-background-secondary);
  border-color: var(--color-border);
}

:root.dark .custom-checkbox,
:root.auto.dark .custom-checkbox {
  background: var(--color-background-primary);
  border-color: var(--color-border);
}

:root.dark .quick-flags-btn,
:root.auto.dark .quick-flags-btn {
  background: var(--color-background-primary);
  border-color: var(--color-border);
}

.webdav-tip {
  position: relative;
  z-index: 1;
  margin: 0 28px 12px;
  background: linear-gradient(135deg, #fef3cd 0%, #fff3cd 100%);
  border: 1px solid #f9cc33;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(249, 204, 51, 0.1);
  overflow: hidden;
}

.winfsp-tip {
  position: relative;
  z-index: 1;
  margin: 0 28px 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  border: 1px solid #3b82f6;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
  overflow: hidden;
}

.tip-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
}

.tip-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(249, 204, 51, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winfsp-tip .tip-icon {
  background: rgba(59, 130, 246, 0.1);
}

.tip-icon .icon {
  width: 16px;
  height: 16px;
  color: #b45309;
}

.winfsp-tip .tip-icon .icon {
  color: #1d4ed8;
}

.tip-message {
  flex: 1;
  min-width: 0;
}

.tip-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.3;
}

.winfsp-tip .tip-title {
  color: #1e40af;
}

.tip-description {
  margin: 0;
  font-size: 12px;
  color: #a16207;
  line-height: 1.4;
}

.winfsp-tip .tip-description {
  color: #1d4ed8;
}

.tip-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(249, 204, 51, 0.1);
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.winfsp-tip .tip-close {
  background: rgba(59, 130, 246, 0.1);
}

.tip-close:hover {
  background: rgba(249, 204, 51, 0.2);
}

.winfsp-tip .tip-close:hover {
  background: rgba(59, 130, 246, 0.2);
}

.tip-close .close-icon {
  width: 14px;
  height: 14px;
  color: #a16207;
}

.winfsp-tip .tip-close .close-icon {
  color: #1d4ed8;
}

:root.dark .webdav-tip,
:root.auto.dark .webdav-tip {
  background: linear-gradient(135deg, #451a03 0%, #541c15 100%);
  border-color: #a16207;
  box-shadow: 0 1px 4px rgba(161, 98, 7, 0.1);
}

:root.dark .winfsp-tip,
:root.auto.dark .winfsp-tip {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #3b82f6;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
}

:root.dark .tip-icon,
:root.auto.dark .tip-icon {
  background: rgba(161, 98, 7, 0.1);
}

:root.dark .winfsp-tip .tip-icon,
:root.auto.dark .winfsp-tip .tip-icon {
  background: rgba(59, 130, 246, 0.1);
}

:root.dark .tip-icon .icon,
:root.auto.dark .tip-icon .icon {
  color: #f59e0b;
}

:root.dark .winfsp-tip .tip-icon .icon,
:root.auto.dark .winfsp-tip .tip-icon .icon {
  color: #60a5fa;
}

:root.dark .tip-title,
:root.auto.dark .tip-title {
  color: #fbbf24;
}

:root.dark .winfsp-tip .tip-title,
:root.auto.dark .winfsp-tip .tip-title {
  color: #93c5fd;
}

:root.dark .tip-description,
:root.auto.dark .tip-description {
  color: #d97706;
}

:root.dark .winfsp-tip .tip-description,
:root.auto.dark .winfsp-tip .tip-description {
  color: #60a5fa;
}

:root.dark .tip-close,
:root.auto.dark .tip-close {
  background: rgba(161, 98, 7, 0.1);
}

:root.dark .winfsp-tip .tip-close,
:root.auto.dark .winfsp-tip .tip-close {
  background: rgba(59, 130, 246, 0.1);
}

:root.dark .tip-close:hover,
:root.auto.dark .tip-close:hover {
  background: rgba(161, 98, 7, 0.2);
}

:root.dark .winfsp-tip .tip-close:hover,
:root.auto.dark .winfsp-tip .tip-close:hover {
  background: rgba(59, 130, 246, 0.2);
}

:root.dark .tip-close .close-icon,
:root.auto.dark .tip-close .close-icon {
  color: #d97706;
}

:root.dark .winfsp-tip .tip-close .close-icon,
:root.auto.dark .winfsp-tip .tip-close .close-icon {
  color: #60a5fa;
}

@media (max-width: 1024px) {
  .header-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .controls-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-container {
    max-width: none;
  }

  .config-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .mount-header {
    padding: 20px 16px;
  }

  .controls-section {
    padding: 16px;
  }

  .configs-container {
    padding: 20px 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .stats-overview {
    flex-wrap: wrap;
    gap: 12px;
  }

  .webdav-tip,
  .winfsp-tip {
    margin: 0 16px 8px;
  }

  .tip-content {
    padding: 10px 12px;
    gap: 10px;
  }

  .tip-icon {
    width: 28px;
    height: 28px;
  }

  .tip-icon .icon {
    width: 14px;
    height: 14px;
  }

  .tip-title {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .tip-description {
    font-size: 11px;
  }

  .tip-close {
    width: 24px;
    height: 24px;
  }

  .tip-close .close-icon {
    width: 12px;
    height: 12px;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-header {
    padding: 20px 16px;
  }

  .modal-content {
    padding: 20px 16px;
  }

  .modal-footer {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .primary-btn {
    justify-content: center;
  }

  .card-actions {
    flex-direction: column;
    gap: 12px;
  }

  .secondary-actions {
    justify-content: center;
  }
}

/* Dark mode specific adjustments */
:root.dark .config-card.mounted,
:root.auto.dark .config-card.mounted {
  background: rgba(52, 199, 89, 0.1);
}

:root.dark .config-card.error,
:root.auto.dark .config-card.error {
  background: rgba(255, 59, 48, 0.1);
}

:root.dark .config-card.loading,
:root.auto.dark .config-card.loading {
  background: rgba(10, 132, 255, 0.1);
}

:root.dark .error-alert,
:root.auto.dark .error-alert {
  background: rgba(255, 59, 48, 0.2);
  border-bottom-color: rgba(255, 59, 48, 0.3);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .config-card,
  .refresh-icon,
  .status-icon.spinning {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

/* Focus styles for accessibility */
.search-input:focus-visible,
.status-filter:focus-visible,
.refresh-btn:focus-visible,
.primary-btn:focus-visible,
.action-btn:focus-visible,
.secondary-btn:focus-visible,
.cancel-btn:focus-visible,
.save-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
