/* Summary Tool specific styles using existing theme variables */
:root {
  --white-4345: #ffffff;
  --accent-color: #d2bf80;
  --accent-color-dark: #bfa85c;
  --bg-shade: #f9f9f9;
  --primary-text-color: #333333;
  --secondary-text-color: #777777;
  --placeholder-color: #aaaaaa;
}
.dark-mode {
  --white-4345: #222222;
  --accent-color: #d2bf80;
  --accent-color-dark: #bfa85c;
  --bg-shade: #1a1a1a;
  --primary-text-color: #eeeeee;
  --secondary-text-color: #cccccc;
  --placeholder-color: #888888;
}
.summary-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
}

.summary-card {
  background: var(--white-4345);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.dark-mode .summary-card {
  background: var(--bg-shade);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(210, 191, 128, 0.2);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tool-header {
  color: var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
}

.feature-badge {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-color-dark)
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.85rem;
  margin: 0.25rem;
  display: inline-block;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(210, 191, 128, 0.3);
}

.result-container {
  background: var(--bg-shade);
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 2rem;
  margin-top: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  font-family: "Poppins", sans-serif;
  color: var(--primary-text-color);
  display: none;
}

.dark-mode .result-container {
  background: #333;
  border-color: #555;
}

.success-result {
  border-left: 6px solid #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.error-result {
  border-left: 6px solid #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.loading-result {
  border-left: 6px solid var(--accent-color);
  background: rgba(210, 191, 128, 0.1);
}

.file-upload-area {
  border: 3px dashed var(--accent-color);
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  background: var(--bg-shade);
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--primary-text-color);
  margin: 1rem 0;
}

.dark-mode .file-upload-area {
  background: #333;
}

.file-upload-area:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.01);
}

.file-upload-area.dragover {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.action-btn {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-color-dark)
  );
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 15px rgba(210, 191, 128, 0.3);
  width: 100%;
  margin-top: 1rem;
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(210, 191, 128, 0.4);
}

.action-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.secondary-btn:hover {
  background: var(--accent-color);
  color: white;
}

.input-area {
  width: 100%;
  min-height: 200px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 1.5rem;
  font-family: "Poppins", sans-serif;
  resize: vertical;
  background: var(--white-4345);
  color: var(--primary-text-color);
  transition: border-color 0.3s ease;
  font-size: 1rem;
  line-height: 1.6;
}

.dark-mode .input-area {
  background: #444;
  border-color: #555;
}

.input-area:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(210, 191, 128, 0.3);
}

.enhancement-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem;
  background: var(--white-4345);
  color: var(--primary-text-color);
  font-family: "Poppins", sans-serif;
  width: 100%;
  margin-bottom: 1rem;
}

.dark-mode .enhancement-select {
  background: #444;
  border-color: #555;
}

.enhancement-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(210, 191, 128, 0.3);
}

.summary-content {
  background: var(--white-4345);
  border: 2px solid var(--accent-color);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 1rem;
  line-height: 1.8;
  color: var(--primary-text-color);
  font-size: 1rem;
}

.dark-mode .summary-content {
  background: #333;
}

.copy-btn {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #138496;
  transform: scale(1.05);
}

.download-btn {
  background: #6f42c1;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 1rem 0.5rem 0 0.5rem;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #5a2a9e;
  transform: scale(1.05);
}

.clear-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

.spinner-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-description {
  color: var(--secondary-text-color);
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: center;
}

.dark-mode .tool-description {
  color: var(--placeholder-color);
}

.file-info {
  background: rgba(210, 191, 128, 0.2);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  display: none;
}

.dark-mode .file-info {
  background: rgba(210, 191, 128, 0.3);
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(210, 191, 128, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
}

.dark-mode .stats-row {
  background: rgba(210, 191, 128, 0.2);
}

.tab-container {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.dark-mode .tab-container {
  border-bottom-color: #555;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--secondary-text-color);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.tab-btn:hover {
  color: var(--accent-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.summary-section {
  padding: 2rem 0;
  min-height: 80vh;
}

/* Responsive Design */
@media (max-width: 768px) {
  .summary-container {
    padding: 1rem;
  }

  .summary-card {
    padding: 1.5rem;
  }

  .file-upload-area {
    padding: 2rem;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}
