/* Tools Page Specific Styles */
.tool-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.75rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tool-header h1 i {
    color: #2563eb;
}

.tool-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.tool-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    margin-top: 2rem;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #2563eb;
}

/* Form Styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group input {
    flex: 1;
}

.input-group select {
    min-width: 80px;
}

/* BMI Calculator Specific */
.result-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.bmi-result {
    margin-bottom: 2rem;
}

.bmi-value {
    font-size: 3rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.bmi-category {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.bmi-category.underweight {
    background: #dbeafe;
    color: #1d4ed8;
}

.bmi-category.normal {
    background: #d1fae5;
    color: #059669;
}

.bmi-category.overweight {
    background: #fed7aa;
    color: #ea580c;
}

.bmi-category.obese {
    background: #fecaca;
    color: #dc2626;
}

.bmi-gauge {
    margin: 2rem 0;
}

.gauge-bar {
    height: 20px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 25%, #f59e0b 75%, #ef4444 100%);
    border-radius: 10px;
    position: relative;
    margin-bottom: 0.5rem;
}

.gauge-indicator {
    position: absolute;
    top: -5px;
    width: 30px;
    height: 30px;
    background: #1f2937;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.bmi-table {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.header {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.table-row.underweight {
    background: #eff6ff;
}

.table-row.normal {
    background: #f0fdf4;
}

.table-row.overweight {
    background: #fffbeb;
}

.table-row.obese {
    background: #fef2f2;
}

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

.related-tools {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.related-tools h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-tools h3 i {
    color: #2563eb;
}

.tool-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tool-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Word Counter Specific */
.word-counter-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

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

.stat-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* QR Code Generator */
.qr-result {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.qr-code-container {
    display: inline-block;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.qr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */

/* Additional Tool Styles */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-category {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.category-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.category-header h3 i {
    color: #2563eb;
}

.word-count {
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.words-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.word-tag {
    background: white;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.word-tag:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #6b7280;
    font-size: 1.1rem;
}

.loading-indicator i {
    font-size: 1.5rem;
    color: #2563eb;
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.word-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    text-transform: capitalize;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.text-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.results-grid .result-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.result-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.formula {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #2563eb;
    margin-top: 1rem;
}

.formula p {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.formula ul {
    margin-left: 1rem;
}

.formula li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.info-list {
    margin-left: 1rem;
}

.info-list li {
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Tools Page Styles */
.tools-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.tools-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tools-header h1 i {
    color: #2563eb;
}

.tools-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.tools-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-filter:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.category-filter.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

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

.tool-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

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

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #059669);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Image Tools Styles */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-content i {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.upload-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.compression-settings {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.compression-settings h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.quality-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d1d5db;
    outline: none;
    -webkit-appearance: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
}

.image-preview {
    margin-top: 2rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    position: relative;
}

.preview-image {
    flex-shrink: 0;
}

.preview-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.preview-info {
    flex: 1;
}

.preview-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.preview-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.compression-results {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.compression-results p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.compression-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* PDF Tools Styles */
.pdf-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdf-upload-area:hover,
.pdf-upload-area.drag-over {
    border-color: #dc2626;
    background: #fef2f2;
}

.pdf-preview {
    margin-top: 2rem;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.pdf-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.pdf-info {
    flex: 1;
}

.pdf-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.pdf-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

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

.conversion-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

/* Article Prompt Generator Styles */
.prompts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.prompts-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.prompts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prompt-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.prompt-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.prompt-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.copy-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.prompt-details {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.detail-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.detail-tag.tone-informative { background: #dbeafe; color: #1d4ed8; }
.detail-tag.tone-persuasive { background: #fef3c7; color: #d97706; }
.detail-tag.tone-casual { background: #d1fae5; color: #059669; }
.detail-tag.tone-professional { background: #e0e7ff; color: #5b21b6; }
.detail-tag.tone-humorous { background: #fce7f3; color: #be185d; }
.detail-tag.tone-inspirational { background: #ecfdf5; color: #047857; }
.detail-tag.tone-analytical { background: #f3f4f6; color: #374151; }

.detail-tag.length-short { background: #fef2f2; color: #dc2626; }
.detail-tag.length-medium { background: #fffbeb; color: #d97706; }
.detail-tag.length-long { background: #f0fdf4; color: #16a34a; }

.prompt-suggestions {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #2563eb;
}

.prompt-suggestions p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    color: #374151;
}

.prompt-suggestions ul {
    margin: 0;
    padding-left: 1.25rem;
}

.prompt-suggestions li {
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Image Tools Additional Styles */
.preset-sizes {
    margin-bottom: 1.5rem;
}

.preset-sizes h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preset-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #374151;
}

.preset-btn:hover,
.preset-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.custom-size {
    margin-bottom: 1.5rem;
}

.custom-size h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.size-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resize-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resize-results,
.conversion-results {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 0.5rem;
    border-left: 3px solid #16a34a;
}

.resize-results p,
.conversion-results p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #374151;
}

.resize-results p:last-of-type,
.conversion-results p:last-of-type {
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 60% 40%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .tools-categories {
        gap: 0.5rem;
    }
    
    .search-options {
        gap: 1rem;
    }
    
    .text-actions {
        flex-direction: column;
    }
    
    .size-inputs {
        grid-template-columns: 1fr;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .prompt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .tool-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .word-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tools-sidebar {
        position: static;
    }
    
    .tools-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .word-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .search-options {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tool-page {
        padding: 1rem 0;
    }
    
    .tool-card,
    .info-card,
    .related-tools {
        padding: 1.5rem;
    }
    
    .word-stats {
        grid-template-columns: 1fr;
    }
    
    .gauge-labels {
        font-size: 0.625rem;
    }
    
    .search-box {
        display: none;
    }
    
    .tools-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-filter {
        width: 200px;
    }
    
    .words-grid {
        gap: 0.5rem;
    }
    
    .word-tag {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .prompts-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .detail-tag {
        font-size: 0.625rem;
        padding: 0.2rem 0.6rem;
    }
}