/* Minifier modern styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center {
  text-align: center;
}

.section-heading {
  margin-bottom: 15px;
  text-align: center;
  color: #2c3e50;
  font-weight: 700;
  font-size: 2.2rem;
}

.section-description {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.analyzer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.converter-boxx {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Tab styles - from sitemap_generator.css */
.tabs-container {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 20px;
  margin-right: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-button:hover {
  color: #3498db;
}

.tab-button.active {
  color: #3498db;
  border-bottom-color: #3498db;
}

.tab-content {
  padding: 15px 0;
  width: 100%;
}

.tab-pane {
  display: none;
  width: 100%;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s;
}

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

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 0.85rem;
}

.text-input, .code-display {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  font-family: monospace;
  min-height: 300px;
  resize: vertical;
}

.text-input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.radio-options {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-options label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.radio-options input[type="radio"] {
  margin-right: 8px;
}

.file-input-container {
  position: relative;
  width: 100%;
}

.file-input {
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
  position: absolute;
  z-index: -1;
}

.file-input-label {
  display: block;
  position: relative;
  width: 50%;
  height: 45px;
  border-radius: 8px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.file-input-label:hover {
  background: #e1e1e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.file-input:focus + .file-input-label {
  outline: 2px solid #3498db;
}

.analyze-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  width: 100%;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.analyze-button:hover {
  background: linear-gradient(135deg, #2980b9, #1e6eb0);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.warning-text {
  margin-top: 12px;
  text-align: center;
  color: #e74c3c;
  font-size: 0.9em;
}

/* Result box styles */
.result-box {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #3498db;
}

.result-header {
  margin-bottom: 20px;
}

.result-header h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #2c3e50;
  font-weight: 700;
}

.result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.stats-item {
  background-color: #edf7fd;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.reduction {
  color: #27ae60;
}

.increase {
  color: #e74c3c;
}

/* Modified code panels for vertical stacking */
.code-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.code-panel {
  width: 100%;
}

.code-panel + .code-panel {
  margin-top: 10px;
}

.code-panel h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
}

.code-display {
  background-color: #f8f9fa;
  font-family: monospace;
  cursor: text;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.download-button, .copy-button, .reset-button {
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-button {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
}

.download-button:hover {
  background: linear-gradient(135deg, #2980b9, #1e6eb0);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.copy-button {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ddd;
}

.copy-button:hover {
  background-color: #e1e1e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reset-button {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  color: white;
  border: none;
  display: inline-block;
}

.reset-button:hover {
  background: linear-gradient(135deg, #7f8c8d, #6c7a7c);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Info box styles - centered */
.info-box {
  max-width: 1000px;
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin: 40px auto;
}

.info-box h2 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
}

.additional-info {
  margin-top: 20px;
}

.additional-info h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 18px;
}

.modern-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #3498db;
  font-weight: bold;
  font-size: 18px;
}

.list-content {
  flex: 1;
}

.list-content strong {
  font-weight: 600;
  color: #2c3e50;
}

/* Banner container */
.banner-container {
  margin: 20px auto;
  text-align: center;
}

/* Error display */
.error {
  background-color: #fde2e2;
  color: #e74c3c;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  border-left: 4px solid #e74c3c;
}

/* Simple form */
.simple-form {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-input-label {
    width: 100%;
  }
  
  .result-actions {
    flex-direction: column;
  }
  
  .download-button, .copy-button, .reset-button {
    width: 100%;
  }
  
  .tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-button {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .section-heading {
    font-size: 1.8rem;
  }
}




/* Related Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

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

.tool-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.tool-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.tool-description {
  font-size: 14px;
  color: #7f8c8d;
}

/* Full width info container */
.info-container-full {
  width: 100%;
  padding: 30px 30px 38px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.07);
  background-color: #ffffff;
  position: relative;
  margin-bottom: 25px;
}

/* Accent bar styles */
.accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.accent-bar.green {
  background-color: #2ecc71;
}

.accent-bar.blue {
  background-color: #3498db;
}

.accent-bar.yellow {
  background-color: #f1c40f;
}

.accent-bar.tricolor-bgr {
  background: linear-gradient(to right, 
    #3498db 0%, #3498db 33.33%, 
    #2ecc71 33.33%, #2ecc71 66.66%, 
    #e74c3c 66.66%, #e74c3c 100%);
}

.accent-bar.tricolor-gry {
  background: linear-gradient(to right, 
    #2ecc71 0%, #2ecc71 33.33%, 
    #e74c3c 33.33%, #e74c3c 66.66%, 
    #f1c40f 66.66%, #f1c40f 100%);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .tool-card {
    padding: 15px;
  }
  
  .tool-icon {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .tool-name {
    font-size: 14px;
  }
  
  .tool-description {
    font-size: 12px;
  }
  
  .info-container-full {
    padding: 20px 20px 30px;
  }
}