.iframe-test-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  min-height: 100vh;
}

.iframe-test-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
}

.iframe-test-header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.iframe-test-header p {
  color: #6c757d;
  font-size: 1.1rem;
}

.iframe-test-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.test-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.test-section h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.test-section p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.test-section ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.test-section li {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.test-section li code {
  background: #f1f3f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #d73a49;
}



.responsive-box {
  background: #e3f2fd;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #bbdefb;
}

.responsive-box p {
  margin: 0;
  color: #1565c0;
  font-weight: 500;
}

#viewport-size {
  font-weight: bold;
  color: #0d47a1;
}

/* Iframe styling */
.iframe-container {
  margin: 1rem 0;
  position: relative;
}

.external-iframe {
  display: block;
  border: none;
  background: transparent;
  transition: all 0.3s ease;
  resize: both;
  overflow: auto;
  min-width: 400px;
  min-height: 300px;
  max-width: 100%;
  max-height: 80vh;
  width: 100%;
  height: 600px;
}

/* Resize handle styling */
.external-iframe::-webkit-resizer {
  background: #007bff;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.iframe-info {
  background: #e3f2fd;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  border-left: 4px solid #2196f3;
}

.iframe-info p {
  margin: 0.5rem 0;
  color: #1565c0;
  font-size: 0.9rem;
}

.iframe-info strong {
  color: #0d47a1;
}

/* URL input form styling */
.url-form {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #e9ecef;
}

.url-input-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 300px;
}

.form-group label {
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

.url-input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  background: white;
  transition: border-color 0.2s ease;
}

.url-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.url-submit {
  padding: 0.75rem 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.url-submit:hover {
  background: #0056b3;
}

.url-submit:active {
  transform: translateY(1px);
}

/* Code styling in info panel */
.iframe-info code {
  background: #f1f3f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #d73a49;
  word-break: break-all;
}

/* Responsive design for iframe testing */
@media (max-width: 768px) {
  .iframe-test-container {
    padding: 1rem;
  }

  .iframe-test-header h1 {
    font-size: 2rem;
  }

  .test-elements {
    flex-direction: column;
    align-items: stretch;
  }

  .test-input,
  .test-select {
    min-width: auto;
    width: 100%;
  }
}