/* Export Button Styles */
.export-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.export-button.primary {
  background-color: #059669;
  color: white;
}

.export-button.primary:hover:not(:disabled) {
  background-color: #047857;
  transform: translateY(-1px);
}

.export-button.secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.export-button.secondary:hover:not(:disabled) {
  background-color: #e5e7eb;
}

.export-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.export-button.exporting {
  pointer-events: none;
}

/* Loading Spinner */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Export Dropdown */
.export-dropdown-container {
  position: relative;
  display: inline-block;
}

.export-dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #059669;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.export-dropdown-button:hover:not(:disabled) {
  background-color: #047857;
}

.export-dropdown-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.export-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 200px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow: hidden;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}

.dropdown-item:hover:not(:disabled) {
  background-color: #f9fafb;
}

.dropdown-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dropdown-item:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

/* Dashboard Controls Layout */
.dashboard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.dashboard-search {
  flex: 1;
  max-width: 400px;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dashboard-search {
    max-width: none;
  }
  
  .dashboard-actions {
    justify-content: center;
  }
  
  .export-dropdown-menu {
    right: auto;
    left: 0;
  }
}