/* Instance Refresh Dialog Styles */
.refresh-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.refresh-dialog {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 900px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.refresh-dialog h2 {
  color: #fff;
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.refresh-dialog-subtitle {
  color: #a0a0c0;
  font-size: 16px;
  margin: 0 0 30px 0;
}

.refresh-options-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.refresh-option-card {
  background: linear-gradient(135deg, #2a2a3e 0%, #1f1f30 100%);
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.refresh-option-card:hover:not(.disabled) {
  border-color: #4a9eff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.refresh-option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #1a1a2a 0%, #15151f 100%);
}

.refresh-option-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.refresh-option-card h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.refresh-option-card p {
  color: #a0a0c0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.refresh-option-badge {
  display: inline-block;
  background: #4a9eff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.refresh-option-badge.coming-soon {
  background: #7a7a9a;
}

.refresh-option-badge.recommended {
  background: #4a9eff;
}

.refresh-option-badge.new {
  background: #ff6b6b;
}

/* Status messages */
.refresh-status-message {
  background: #2a2a3e;
  border-left: 4px solid #4a9eff;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 14px;
}

.refresh-status-message.warning {
  border-left-color: #ffa500;
  background: #3a2a1e;
}

.refresh-loading {
  text-align: center;
  padding: 40px;
  color: #fff;
}

.refresh-spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #4a9eff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* Confirmation dialog styles */
.confirmation-dialog {
  max-width: 550px;
}

.confirmation-details {
  background: #2a2a3e;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.confirmation-details p {
  color: #fff;
  font-size: 14px;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.confirmation-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.confirmation-details li {
  color: #a0a0c0;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-details li:last-child {
  border-bottom: none;
}

.confirmation-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
}

.confirmation-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cancel-btn {
  background: #3a3a4e;
  color: #fff;
}

.cancel-btn:hover {
  background: #4a4a5e;
}

.confirm-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: #fff;
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e04848 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

/* Destructive option badge */
.refresh-option-badge.destructive {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Destructive dialog styles */
.destructive-dialog {
  border: 2px solid #dc3545;
}

.refresh-status-message.destructive {
  border-left-color: #dc3545;
  background: #3a1a1e;
}

.destructive-details {
  background: #2a1a1e;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.destructive-details li {
  border-bottom-color: rgba(220, 53, 69, 0.2);
}

.destructive-warning-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #3a1a1e 0%, #2a1015 100%);
  border: 2px solid #dc3545;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.destructive-warning-box .warning-icon {
  font-size: 32px;
}

.destructive-warning-box p {
  color: #ff6b6b;
  margin: 0;
  font-size: 14px;
}

/* Delete confirmation input */
.delete-confirmation-input-container {
  margin: 25px 0;
}

.delete-confirmation-input-container label {
  display: block;
  color: #a0a0c0;
  font-size: 14px;
  margin-bottom: 10px;
}

.delete-confirm-input {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #3a3a4e;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.delete-confirm-input:focus {
  outline: none;
  border-color: #dc3545;
}

.delete-confirm-input::placeholder {
  color: #5a5a7a;
}

/* Destructive button styles */
.destructive-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
}

.destructive-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

.destructive-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.delete-btn {
  background: linear-gradient(135deg, #8b0000 0%, #660000 100%);
}

.delete-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #a00000 0%, #800000 100%);
  box-shadow: 0 5px 20px rgba(139, 0, 0, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .refresh-dialog {
    padding: 25px;
    width: 95%;
  }

  .refresh-options-container {
    grid-template-columns: 1fr;
  }

  .refresh-dialog h2 {
    font-size: 22px;
  }

  .confirmation-buttons {
    flex-direction: column;
  }

  .confirmation-btn {
    width: 100%;
    text-align: center;
  }
}
