/**
 * Shipments & SETs Manager Styling
 * Matches the design from the provided image
 */

/* ========================================
   Shipments Container
   ======================================== */
.shipments-container {
  margin: 30px 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   Individual Shipment Block
   ======================================== */
.shipment-block {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  position: relative;
}

.shipment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0056b3;
}

.shipment-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #0056b3;
}

.remove-shipment-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #dc3545;
  user-select: none;
}

.remove-shipment-checkbox.danger {
  background: #dc3545;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid #dc3545;
}

.remove-shipment-checkbox.danger:hover {
  background: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.remove-shipment-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ========================================
   SETs Section
   ======================================== */
.sets-section {
  margin-bottom: 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
}

.sets-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.sets-header label {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin: 0;
}

.sets-quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-set-minus,
.btn-set-plus {
  width: 36px;
  height: 36px;
  background: #387280;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-set-minus:hover,
.btn-set-plus:hover {
  background: #f68d3b;
}

.sets-quantity-input {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 2px solid #0056b3;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #0056b3;
}

.max-sets-label {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

/* SETs List */
.sets-list {
  margin-top: 15px;
}

.set-item {
  /* Container for set name rows */
}

.set-name-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.set-label {
  min-width: 140px;
  font-weight: 500;
  font-size: 14px;
  color: #555;
  text-transform: uppercase;
}

.set-name-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.set-name-input:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* ========================================
   Shipping Options
   ======================================== */
.shipping-options {
  margin-bottom: 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
}

.section-label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.shipping-type-radios {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  user-select: none;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ========================================
   Address Display Blocks
   ======================================== */
.shipping-address-block {
  margin-bottom: 20px;
}

.address-display {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
}

.address-label {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 600;
}

.address-label span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
      background: #f68d3b;
    color: #ffffff;
}

.address-content {
  margin-bottom: 15px;
  line-height: 1.6;
}

.address-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
}

.address-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.btn-address-lookup,
.btn-address-new {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #0056b3;
  color: #0056b3;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-address-lookup:hover,
.btn-address-new:hover {
  background: #0056b3;
  color: white;
}

/* ========================================
   Shipping Method Dropdown
   ======================================== */
.shipping-method-section {
  margin-bottom: 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
}

.shipping-method-select {
  width: 100%;
  padding: 5px 15px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
  background: white;
  cursor: pointer;
}

.shipping-method-select:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.shipping-note {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   Artwork Section Per Shipment
   ======================================== */
.shipment-artwork-section {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
}

.shipment-artwork-section h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.artwork-zones-container {
  /* Individual artwork upload zones will be added here */
}

/* Single SET Artwork Upload Zone */
.set-artwork-upload {
  background: #f8f9fa;
  border: 2px dashed #0056b3;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.set-artwork-upload:hover {
  background: #e9ecef;
  border-color: #003d82;
}

.set-artwork-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.set-artwork-title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.set-artwork-required {
  font-size: 12px;
  color: #fff;
  background: #dc3545;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* ========================================
   Add Another Shipment Button
   ======================================== */
.add-shipment-section {
  text-align: center;
  margin: 30px 0;
}

.btn-add-shipment {
  padding: 15px 40px;
  background: #387481;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.btn-add-shipment:hover {
 background: #2c5c67;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(40, 167, 69, 0.3);
}

.btn-add-shipment:active {
  transform: translateY(0);
}

/* ========================================
   Total Summary Section
   ======================================== */
.total-summary-section {
  background: #f8f9fa;
  border: 2px solid #0056b3;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

.total-summary-section h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #0056b3;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
  font-size: 15px;
}

.summary-row:last-child {
  border-bottom: none;
  font-size: 18px;
  font-weight: 600;
  color: #0056b3;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #0056b3;
}

/* ========================================
   Upload Artwork Button (Bottom)
   ======================================== */
.upload-artwork-bottom {
  text-align: center;
  margin: 30px 0;
}

.btn-upload-artwork {
  padding: 18px 60px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
  text-transform: uppercase;
}

.btn-upload-artwork:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .shipment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .sets-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shipping-type-radios {
    flex-direction: column;
    gap: 12px;
  }

  .set-name-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .set-label {
    min-width: auto;
  }

  .address-actions {
    flex-direction: column;
  }

  .btn-address-lookup,
  .btn-address-new {
    width: 100%;
  }
  
  .btn-check-ups-shipping {
    width: 100%;
  }
}

/* ========================================
   UPS Shipping Button
   ======================================== */
.btn-check-ups-shipping {
  background: linear-gradient(135deg, #351C15 0%, #5A3825 100%);
  color: #FFD100;
  border: 2px solid #FFD100;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(53, 28, 21, 0.3);
}

.btn-check-ups-shipping:hover {
  background: linear-gradient(135deg, #5A3825 0%, #351C15 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(53, 28, 21, 0.4);
}

.btn-check-ups-shipping:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(53, 28, 21, 0.3);
}

.btn-check-ups-shipping:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   Mini-Card Artwork Actions
   ======================================== */
.mini-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mini-card.has-artwork {
  border-color: #4CAF50;
}

.mini-card.uploading {
  opacity: 0.6;
  pointer-events: none;
}

.mini-card.uploading::after {
  content: '⏳ Uploading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
}

.artwork-image {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.mini-card:hover .artwork-image {
  opacity: 0.8;
}

.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: 6px;
  z-index: 5;
}

.mini-card:hover .card-actions {
  display: flex;
}

.mini-card.has-artwork .card-actions {
  display: flex;
}

.btn-edit-artwork,
.btn-remove-artwork {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-edit-artwork {
  background: #2196F3;
  color: white;
}

.btn-edit-artwork:hover {
  background: #1976D2;
  transform: scale(1.1);
}

.btn-remove-artwork {
  background: #f44336;
  color: white;
}

.btn-remove-artwork:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

.btn-edit-artwork i,
.btn-remove-artwork i {
  pointer-events: none;
}

/* ========================================
   Animation for Dynamic Elements
   ======================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in animation for notifications */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide down animation for UPS results */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shipment-block {
  animation: fadeInDown 0.4s ease-out;
}

.set-name-row {
  animation: fadeInDown 0.3s ease-out;
}

.dropdown-panel-container .dropdown-toggle {
    background-color: #f68d3b !important;
    
}