/* Enhanced UI Components */

/* Modern Button Styles */
.btn-modern {
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 500;
  text-transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  border: none;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-gradient {
  background: linear-gradient(45deg, #26a69a, #00acc1);
  color: white;
}

.btn-gradient:hover {
  background: linear-gradient(45deg, #00897b, #0097a7);
}

/* Enhanced Cards */
.card-modern {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Price Display */
.price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.price-current {
  font-size: 2rem;
  font-weight: 700;
  color: #26a69a;
}

.price-original {
  font-size: 1.2rem;
  color: #757575;
  text-decoration: line-through;
}

.price-discount {
  background: #ff6f00;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-in-stock {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-out-stock {
  background: #ffebee;
  color: #c62828;
}

.status-limited {
  background: #fff3e0;
  color: #ef6c00;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
}

.star {
  color: #ffc107;
  font-size: 1rem;
}

.star.empty {
  color: #e0e0e0;
}

.rating-text {
  margin-left: 8px;
  color: #757575;
  font-size: 0.9rem;
}

/* Progress Indicators */
.progress-modern {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #26a69a, #00acc1);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Enhanced Form Elements */
.input-modern {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.input-modern:focus {
  border-color: #26a69a;
  box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1);
  outline: none;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #26a69a;
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Toast Notifications */
.toast-modern {
  background: white;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-left: 4px solid #26a69a;
  padding: 16px 20px;
  max-width: 400px;
}

.toast-success {
  border-left-color: #4caf50;
}

.toast-error {
  border-left-color: #f44336;
}

.toast-warning {
  border-left-color: #ff9800;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #26a69a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Dropdown Menu */
.dropdown-modern {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 8px 0;
  min-width: 200px;
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

/* Tabs */
.tabs-modern {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  margin: 16px 0;
}

.tab-modern {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
  font-weight: 500;
}

.tab-modern.active {
  background: white;
  color: #26a69a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Accordion */
.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #e9ecef;
}

.accordion-content {
  padding: 16px 20px;
  background: white;
  display: none;
}

.accordion-content.active {
  display: block;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}