* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1b76d1;
}

.logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-link:hover {
  color: #1b76d1;
}

.nav-link i {
  margin-right: 0.5rem;
}

.cta-button {
  background: #1b76d1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  background: #155a9e;
  box-shadow: 0 2px 8px rgba(27, 118, 209, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1b76d1 0%, #155a9e 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-container {
  max-width: 500px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  background: white;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box i {
  color: #999;
  margin-right: 1rem;
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  color: #333;
}

.search-box input::placeholder {
  color: #999;
}

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin: 3rem 0;
}

/* Main Content */
.main-content {
  background: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tools Section */
.tools-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tools-category h2 {
  color: #333;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: white;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0f0f0;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #1b76d1;
}

.tool-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1b76d1, #155a9e);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.2rem;
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.tool-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background: white;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
  color: #1b76d1;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-tool {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  text-decoration: none;
  color: #666;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.sidebar-tool:hover {
  background: #f0f7ff;
  color: #1b76d1;
  box-shadow: 0 1px 3px rgba(27, 118, 209, 0.1);
}

.sidebar-tool i {
  margin-right: 0.75rem;
  width: 16px;
}

.ads-section {
  border-top: 1px solid #f0f0f0;
  margin-top: 1rem;
  padding-top: 1rem;
}

.ad-placeholder {
  background: #f8f9fa;
  border: 2px dashed #ddd;
  padding: 2rem;
  text-align: center;
  border-radius: 5px;
  color: #999;
}

.ad-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #1b76d1;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #1b76d1;
}

.footer-logo i {
  margin-right: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #1b76d1;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding: 1.5rem 0;
  text-align: center;
  color: #bbb;
}

/* Tool Page Styles */
.tool-page {
  max-width: 800px;
  margin: 0 auto;
}

.tool-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.tool-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.tool-header p {
  font-size: 1.1rem;
  color: #666;
}

.file-uploader {
  background: white;
  border: 2px dashed #1b76d1;
  border-radius: 5px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  transition: all 0.3s;
  cursor: pointer;
}

.file-uploader:hover {
  border-color: #155a9e;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(27, 118, 209, 0.1);
}

.upload-icon {
  font-size: 3rem;
  color: #1b76d1;
  margin-bottom: 1rem;
}

.upload-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.upload-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.upload-btn {
  background: #1b76d1;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.upload-btn:hover {
  background: #155a9e;
  box-shadow: 0 2px 8px rgba(27, 118, 209, 0.3);
}

.content-section {
  background: white;
  padding: 2rem;
  border-radius: 5px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
  color: #1b76d1;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.content-section ul {
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  color: #666;
}

.content-section ol {
  padding-left: 1.5rem;
}

.content-section ol li {
  margin-bottom: 0.5rem;
  color: #666;
}

/* Tool-specific styles */
.tool-input-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tool-input-section h3 {
  margin-bottom: 1rem;
  color: #1b76d1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-textarea {
  width: 100%;
  height: 300px;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  resize: vertical;
}

.tool-textarea:focus {
  outline: none;
  border-color: #1b76d1;
  box-shadow: 0 0 0 2px rgba(27, 118, 209, 0.1);
}

.tool-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stats-display {
  text-align: center;
  color: #666;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 5px;
  margin-bottom: 2rem;
}

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

.stat-card {
  background: #f8fbff;
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #e3f2fd;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #1b76d1;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-input-area {
    grid-template-columns: 1fr;
  }

  .upload-options {
    flex-direction: column;
    align-items: center;
  }

  .tool-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.hidden {
  display: none;
}
