/* Set Default Button */
.set-default {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1.5rem;
}

.set-default:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: rgba(27, 122, 43, 0.04);
}

.set-default svg {
  width: 16px;
  height: 16px;
}

.set-default-container {
  text-align: center;
  margin-top: -2.5rem;
}

/* Set Default Instructions Modal */

/* Set Default Instructions Modal */
.instructions {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Increased z-index */
  padding: 1rem;
  /* Add these properties to ensure it overlays everything */
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.instructions-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  /* Add margin auto for better centering */
  margin: auto;
  /* Ensure content stays above overlay */
  z-index: 10000;
}


.instructions-content h3 {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  text-align: center;
}

.browser-instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.browser {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
}

.browser h4 {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.browser ol {
  padding-right: 1rem;
  margin: 0;
}

.browser li {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.ethical-note {
  background: rgba(27, 122, 43, 0.05);
  border-right: 4px solid var(--green-primary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.ethical-note p {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 0.875rem;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.ethical-note p:last-child {
  margin-bottom: 0;
}

.ethical-note strong {
  color: var(--green-primary);
  font-weight: 600;
}

.close-btn {
  display: block;
  margin: 0 auto;
  background: var(--red-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.close-btn:hover {
  background: var(--red-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .browser-instructions {
    grid-template-columns: 1fr;
  }
  
  .instructions-content {
    padding: 1.5rem;
  }
}
