
/* ================================================================
   TOOL PAGE — Updated with CSS Variables
   All hardcoded colors replaced with var(--accent), var(--text), etc.
   ================================================================ */

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

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tool-title h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

.tool-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    line-height: 1.5;
}

.tool-icon {
    font-size: 3rem;
    color: var(--accent);
    background-color: rgba(99,102,241,0.15);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-upload-area {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.upload-box {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-box:hover {
    border-color: var(--accent);
    background-color: rgba(99,102,241,0.06);
}

.upload-box i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    min-height: 48px;
}

.upload-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.3;
}

.upload-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.upload-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 140px;
}

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

.file-requirements {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.uploaded-files {
    display: none;
    margin-top: 20px;
    min-height: 0;
    transition: min-height 0.3s ease;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-icon {
    margin-right: 15px;
    color: var(--accent);
    font-size: 1.5rem;
    min-width: 24px;
}

.file-name {
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
    line-height: 1.4;
}

.file-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    min-width: 20px;
}

.tool-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.process-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 160px;
}

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

.clear-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 160px;
}

.clear-btn:hover {
    background-color: var(--bg);
    color: var(--text);
}

.tool-results {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.results-header h2 {
    font-size: 1.8rem;
    color: var(--text);
    line-height: 1.3;
}

.result-actions {
    display: flex;
    gap: 15px;
}

.download-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    min-width: 160px;
    justify-content: center;
}

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

.result-preview {
    min-height: 200px;
    background-color: var(--bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    min-height: 48px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== DETAILED DESCRIPTION RICH TEXT STYLING ===== */
/* Comprehensive styling for all HTML tags in detailed-description */

.detailed-description {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Headings */
.detailed-description h1 {
  font-size: 2.2rem;
  margin: 1.5em 0 0.75em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  border-bottom: 2px solid rgba(99,102,241,0.2);
  padding-bottom: 0.3em;
}

.detailed-description h2 {
  font-size: 1.8rem;
  margin: 1.4em 0 0.7em;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
  padding-bottom: 0.25em;
}

.detailed-description h3 {
  font-size: 1.5rem;
  margin: 1.3em 0 0.6em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.detailed-description h4 {
  font-size: 1rem;
  margin: 1.2em 0 0.5em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.detailed-description h5 {
  font-size: 1.1rem;
  margin: 1.1em 0 0.5em;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  text-transform: uppercase; 
  letter-spacing: 0.5px;
}

.detailed-description h6 {
  font-size: 1rem;
  margin: 1em 0 0.5em;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-muted);
  font-style: italic;
}

/* Paragraphs */
.detailed-description p {
  margin: 0 0 1.2em;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Links */
.detailed-description a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.detailed-description a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

/* Lists */
.detailed-description ul,
.detailed-description ol {
  margin: 0 0 1.2em 1.5em;
  padding-left: 0.5em;
}

.detailed-description li {
  margin: 0.5em 0;
  line-height: 1.7;
}

.detailed-description li > ul,
.detailed-description li > ol {
  margin: 0.5em 0 0.5em 1.5em;
}

.detailed-description ul {
  list-style-type: disc;
}

.detailed-description ul ul {
  list-style-type: circle;
}

.detailed-description ul ul ul {
  list-style-type: square;
}

.detailed-description ol {
  list-style-type: decimal;
}

.detailed-description ol ol {
  list-style-type: lower-alpha;
}

.detailed-description ol ol ol {
  list-style-type: lower-roman;
}

/* Task lists (checklists) */
.detailed-description input[type="checkbox"] {
  margin-right: 0.5em;
  vertical-align: middle;
  cursor: pointer;
  accent-color: var(--accent);
}

.detailed-description ul input[type="checkbox"] + * {
  vertical-align: middle;
}

/* Blockquotes */
.detailed-description blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.5em;
  border-left: 4px solid var(--accent);
  background: rgba(99,102,241,0.04);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.detailed-description blockquote p {
  margin-bottom: 0.5em;
}

.detailed-description blockquote p:last-child {
  margin-bottom: 0;
}

.detailed-description blockquote cite {
  display: block;
  margin-top: 0.8em;
  font-size: 0.9em;
  color: var(--text-muted);
  font-style: normal;
}

/* Code blocks */
.detailed-description pre {
  margin: 1.5em 0;
  padding: 1.2em;
  background: var(--bg);
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.detailed-description code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background: rgba(99,102,241,0.08);
  border-radius: 4px;
  color: var(--accent);
}

.detailed-description pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* Inline code */
.detailed-description p code,
.detailed-description li code,
.detailed-description td code {
  background: rgba(99,102,241,0.08);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

/* Tables */
.detailed-description table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.detailed-description thead {
  background: rgba(99,102,241,0.06);
}

.detailed-description th,
.detailed-description td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}

.detailed-description th {
  font-weight: 600;
  color: var(--text);
  background: rgba(99,102,241,0.04);
}

.detailed-description td {
  color: var(--text-muted);
}

.detailed-description tr:nth-child(even) {
  background: rgba(99,102,241,0.02);
}

.detailed-description tr:hover {
  background: rgba(99,102,241,0.04);
  transition: background 0.2s ease;
}

/* Horizontal rules */
.detailed-description hr {
  margin: 2em 0;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

/* Images */
.detailed-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.2em 0;
  display: block;
  box-shadow: var(--shadow);
}

.detailed-description figure {
  margin: 1.5em 0;
  text-align: center;
}

.detailed-description figcaption {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--text-muted);
  font-style: italic;
}

/* Strong and emphasis */
.detailed-description strong,
.detailed-description b {
  font-weight: 700;
  color: var(--text);
}

.detailed-description em,
.detailed-description i {
  font-style: italic;
}

.detailed-description mark {
  background: rgba(251,191,36,0.25);
  padding: 0 0.2em;
  border-radius: 3px;
}

.detailed-description del,
.detailed-description s {
  text-decoration: line-through;
  opacity: 0.7;
}

.detailed-description ins {
  text-decoration: underline;
  background: rgba(16,185,129,0.08);
  padding: 0 0.2em;
}

/* Definition lists */
.detailed-description dl {
  margin: 1.2em 0;
}

.detailed-description dt {
  font-weight: 700;
  margin-top: 0.8em;
  color: var(--text);
}

.detailed-description dd {
  margin: 0.3em 0 0.8em 1.5em;
  line-height: 1.7;
}

/* Address */
.detailed-description address {
  font-style: normal;
  background: rgba(99,102,241,0.04);
  padding: 0.8em 1.2em;
  border-radius: 8px;
  margin: 1.2em 0;
  line-height: 1.6;
}

/* Abbreviation */
.detailed-description abbr[title] {
  text-decoration: dotted underline;
  cursor: help;
}

/* Small text */
.detailed-description small {
  font-size: 0.85em;
  opacity: 0.8;
}

/* Subscript and superscript */
.detailed-description sub {
  vertical-align: sub;
  font-size: 0.75em;
}

.detailed-description sup {
  vertical-align: super;
  font-size: 0.75em;
}

/* Keyboard input */
.detailed-description kbd {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-family: monospace;
  font-size: 0.85em;
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  margin: 0 0.1em;
  border: 1px solid var(--border);
}

/* Sample output */
.detailed-description samp {
  font-family: monospace;
  background: rgba(99,102,241,0.06);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

/* Variables */
.detailed-description var {
  font-family: monospace;
  font-style: italic;
  color: var(--accent);
}

/* ===== TOOL PAGE LAYOUT ===== */
.tool-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1400px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.tool-main-content {
  grid-column: 1;
}

.tool-sidebar {
  grid-column: 2;
  height: fit-content;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
}

/* Sidebar scrollbar styling */
.tool-sidebar::-webkit-scrollbar {
  width: 6px;
}

.tool-sidebar::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.tool-sidebar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.tool-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Tool Header */
.tool-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
  margin-bottom: 30px;
}

.tool-title h1 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.3px;
  text-align: center;
}

.tool-description {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 10px;
  text-align: center;
}

.tool-icon {
  font-size: 3rem;
  color: var(--accent);
  background-color: rgba(99,102,241,0.15);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tool Content */
.tool-content {
  margin-bottom: 40px;
}

.tool-upload-area {
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  min-height: 300px;
}

.upload-box {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.upload-box:hover {
  border-color: var(--accent);
  background-color: rgba(99,102,241,0.04);
}

.upload-box i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.upload-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text);
}

.upload-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upload-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.file-requirements {
  margin-top: 20px;
  font-size: .9rem;
  color: var(--text-muted);
}

.file-requirements p {
  margin: 5px 0;
}

.file-requirements i {
  margin-right: 5px;
}

.uploaded-files {
  display: none;
  margin-top: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.file-info {
  display: flex;
  align-items: center;
}

.file-icon {
  margin-right: 15px;
  color: var(--accent);
  font-size: 1.5rem;
}

.file-name {
  color: var(--text);
  font-weight: 500;
}

.file-size {
  color: var(--text-muted);
  font-size: .9rem;
  margin-left: 10px;
}

.file-remove {
  color: #ef4444;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Tool Actions */
.tool-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.process-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.clear-btn {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 15px 40px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.clear-btn:hover {
  background-color: var(--bg);
  color: var(--text);
}

/* Tool Results */
.tool-results {
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  display: none;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.results-header h2 {
  font-size: 1.8rem;
  color: var(--text);
}

.result-actions {
  display: flex;
  gap: 15px;
}

.download-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

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

.result-preview {
  min-height: 200px;
  background-color: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
  min-height: 200px;
}

.preview-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar-popular {
  background-color: var(--bg-card);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  margin-top: 20px;
}

.sidebar-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.sidebar-title i {
  color: var(--accent);
}

.popular-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-tool-item {
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.popular-tool-item:hover {
  transform: translateX(5px);
}

.popular-tool-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 6px;
  transition: all 0.3s;
}

.popular-tool-link:hover {
  color: var(--text);
}

.popular-tool-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 1rem;
  color: var(--accent);
  border-radius: 6px;
  flex-shrink: 0;
}

.popular-tool-name {
  flex-grow: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Related Tools Section */
.sidebar-related {
  background-color: var(--bg-card);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
}

/* ===== TOOL DETAILS SECTION ===== */
.tool-details-section {
  margin: 40px 0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tool-details-content {
  padding: 20px;
}

.tool-details-content .detailed-description {
  line-height: 1.7;
  font-size: 1.05rem;
}

.tool-details-content .detailed-description h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.tool-details-content .detailed-description p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.tool-details-content .detailed-description ul,
.tool-details-content .detailed-description ol {
  margin: 10px 0 15px 20px;
  padding-left: 20px;
}

.tool-details-content .detailed-description li {
  margin-bottom: 8px;
}

.tool-details-content .detailed-description strong {
  font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.tool-faq-section {
  margin-top: 60px;
  padding: 40px 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text);
}

.faq-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-card);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--bg);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 20px 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== RESPONSIVE STYLES ===== */
/* Tablet */
@media (max-width: 1024px) {
  .tool-page-layout {
    grid-template-columns: 1fr 280px;
    gap: 30px;
    padding: 0 4%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tool-page-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 60px auto 30px;
    padding: 0 4%;
  }

  .tool-main-content {
    order: 1;
    width: 100%;
  }

  .tool-sidebar {
    order: 2;
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .tool-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .tool-icon {
    display: none;
  }

  .tool-title h1 {
    font-size: 1.5rem;
    width: 100%;
  }

  .tool-description {
    font-size: .95rem;
    line-height: 1.4;
    margin-bottom: 0;
  }

  .tool-actions {
    flex-direction: column;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .result-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .upload-box {
    padding: 30px 15px;
  }

  .upload-box h3 {
    font-size: 1.2rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .tool-title h1 {
    font-size: 1.3rem;
  }

  .tool-description {
    font-size: .9rem;
  }

  .upload-box {
    padding: 20px 15px;
  }

  .upload-box h3 {
    font-size: 1.1rem;
  }

  .process-btn,
  .clear-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .sidebar-popular,
  .sidebar-related {
    padding: 18px;
  }

  .popular-tool-name {
    font-size: 0.85rem;
  }

  .sidebar-title {
    font-size: 1.1rem;
  }

  .faq-header h2 {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 15px;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .sidebar-popular,
  .sidebar-related {
    padding: 15px;
  }

  .popular-tool-link {
    padding: 8px;
  }

  .popular-tool-icon {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
    margin-right: 10px;
  }
}

/* Utility classes */
.my-icon {
  height: 70px;
}

.tool-home-icon {
  width: 70px;
  height: 90px;
}

.upload-area-content i,
.paste-area-content i,
.file-requirements i {
  font-size: 1.5rem !important;
}

/* Responsive tables - allow horizontal scroll on small screens */
@media (max-width: 768px) {
  .detailed-description table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .detailed-description th,
  .detailed-description td {
    white-space: normal;
  }
  
  .detailed-description pre {
    font-size: 0.8rem;
    padding: 1em;
  }
  
  .detailed-description h1 {
    font-size: 1.8rem;
  }
  
  .detailed-description h2 {
    font-size: 1.5rem;
  }
  
  .detailed-description h3 {
    font-size: 1.3rem;
  }
  
  .detailed-description blockquote {
    padding: 0.6em 1.2em;
    margin: 1.2em 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .detailed-description {
    font-size: 0.95rem;
  }
  
  .detailed-description h1 {
    font-size: 1.6rem;
  }
  
  .detailed-description h2 {
    font-size: 1.35rem;
  }
  
  .detailed-description h3 {
    font-size: 1.2rem;
  }
  
  .detailed-description th,
  .detailed-description td {
    padding: 8px 10px;
  }
  
  .detailed-description ul,
  .detailed-description ol {
    margin-left: 1.2em;
  }
}

/* Print styles */
@media print {
  .detailed-description {
    color: #000 !important;
  }
  
  .detailed-description a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  .detailed-description pre,
  .detailed-description blockquote {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  
  .detailed-description img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* Hide honeypot field */
.hp-field {
  display: none !important;
}