:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #e5e7eb;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --success-color: #4472ef;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --nover-color: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f3f4f6;
  color: var(--dark-color);
  line-height: 1.6;
}

.container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.card {
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-container {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.search-input {
  flex-grow: 1;
  padding: 12px 18px;
  font-size: 16px;
  border: none;
  border-radius: 1rem 0 0 1rem;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-button {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 1rem 1rem 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-button:hover {
  background-color: var(--primary-hover);
}

.content-frame {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  border: none;
  width: 100%;
  height: calc(100% - 64px);
  background-color: #f3f4f6;
}

.header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #6b7280;
  font-size: 0.95rem;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  color: #6b7280;
  font-size: 0.9rem;
  border-top: 1px solid #e5e7eb;
}

.error-container {
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
}

.error-icon {
  font-size: 3rem;
  color: var(--danger-color);
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  color: var(--danger-color);
  margin-bottom: 1rem;
}

.error-message {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.url-display {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 0.5rem;
  word-break: break-all;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  text-align: left;
  font-family: monospace;
  border: 1px solid #e5e7eb;
}

.back-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9rem;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
  font-weight: 500;
}

.back-button:hover {
  background-color: var(--primary-hover);
}

.proxy-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.proxy-form {
  display: flex;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.proxy-input {
  flex-grow: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
}

.proxy-button {
  padding: 10px 20px;
  background-color: var(--success-color);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.proxy-button:hover {
  background-color: #3b62d9;
}

.proxy-spacer {
  height: 60px;
}

@media (max-width: 768px) {
  .feature-container {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .search-input {
    border-radius: 1rem 1rem 0 0;
  }
  
  .search-button {
    border-radius: 0 0 1rem 1rem;
    margin-top: -1px;
  }
  
  .proxy-form {
    flex-direction: column;
  }
  
  .proxy-input {
    border-radius: 8px 8px 0 0;
  }
  
  .proxy-button {
    border-radius: 0 0 8px 8px;
  }
  
  .proxy-bar {
    height: auto;
    padding: 10px;
  }
  
  .proxy-spacer {
    height: 90px;
  }
}
