/* Management-specific styles */

/* Navigation */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #86868b;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #1d1d1f;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #1d1d1f;
}

/* Management content */
.management-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1rem;
}

.section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.form-group label {
  font-weight: 500;
  color: #1d1d1f;
  font-size: 0.9rem;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group input::placeholder {
  color: #86868b;
}

/* Buttons in forms */
.form-group .btn {
  min-height: 44px;
  white-space: nowrap;
}

/* Orders actions */
.orders-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.orders-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Orders list */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.management-order-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #f2f2f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.management-order-card:hover {
  background: #f5f5f7;
  transform: translateY(-1px);
}

.order-info {
  flex: 1;
}

.order-id {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.25rem;
}

.order-details-small {
  font-size: 0.8rem;
  color: #86868b;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-danger {
  background: #ff3b30;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #d70015;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: #34c759;
}

.toast.error {
  background: #ff3b30;
}

.toast.info {
  background: #007aff;
}

/* Responsive design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .orders-actions {
    flex-direction: column;
  }
  
  .orders-actions .btn {
    width: 100%;
  }
  
  .management-order-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .order-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-link {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .management-content {
    margin: 1.5rem;
  }
  
  .section {
    padding: 2rem;
  }
}
