/* Tool-specific styles - extends common.css */

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tool-header h1 i {
    margin-right: 10px;
}

/* Tool Content */
.tool-content {
    padding: 40px 0 80px;
    background: var(--light-color);
}

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

.tool-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.input-section textarea {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.input-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tool-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Word Memory Tool Specific Styles */

/* Mode Selection */
.mode-selection {
    text-align: center;
}

.mode-selection h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.mode-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.mode-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.mode-card h4 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.mode-card p {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Learning Modes */
.learning-mode {
    animation: fadeInUp 0.5s ease;
}

.mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.mode-header h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

/* Flashcard Styles */
.flashcard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.flashcard {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.flashcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.flashcard.flipped {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.card-front, .card-back {
    padding: 2rem;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.word-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.definition-display {
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.example-display {
    font-size: 1.1rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
}

.card-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.6;
}

.card-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Quiz Styles */
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quiz-question {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.quiz-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.quiz-option label {
    flex: 1;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-color);
}

.quiz-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-feedback {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
}

.feedback-correct {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #10b981;
}

.feedback-incorrect {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.feedback-correct i, .feedback-incorrect i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.session-summary {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
}

.session-summary h4 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.session-summary p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0.5rem 0;
}

/* Review Mode Styles */
.review-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.review-card {
    width: 100%;
    max-width: 500px;
    min-height: 300px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 100px;
}

.difficulty-btn.easy {
    color: #166534;
    border-color: #10b981;
}

.difficulty-btn.easy:hover {
    background: #dcfce7;
    transform: translateY(-2px);
}

.difficulty-btn.medium {
    color: #92400e;
    border-color: #f59e0b;
}

.difficulty-btn.medium:hover {
    background: #fef3c7;
    transform: translateY(-2px);
}

.difficulty-btn.hard {
    color: #991b1b;
    border-color: #ef4444;
}

.difficulty-btn.hard:hover {
    background: #fee2e2;
    transform: translateY(-2px);
}

.difficulty-btn i {
    font-size: 1.5rem;
}

.review-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Manage Mode Styles */
.manage-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.add-word-form {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.add-word-form h4 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.form-grid input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-grid input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.word-list-container {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.word-list-container h4 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.word-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.word-item {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.word-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.word-text {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.word-actions {
    display: flex;
    gap: 0.5rem;
}

.word-actions .action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.word-definition {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.word-example {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.word-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-words {
    text-align: center;
    color: var(--text-color);
    font-style: italic;
    padding: 2rem;
}

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

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stats-card h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: var(--text-color);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.quick-action-btn i {
    color: var(--primary-color);
    transition: color 0.3s;
}

.quick-action-btn:hover i {
    color: white;
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.25rem;
}

.result-value {
    color: var(--text-color);
}

.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-easy {
    background: #dcfce7;
    color: #166534;
}

.score-medium {
    background: #fef3c7;
    color: #92400e;
}

.score-hard {
    background: #fee2e2;
    color: #991b1b;
}

/* Tool Information Section */
.tool-info {
    background: white;
    padding: 80px 0;
}

.info-section {
    margin-bottom: 4rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 0;
}

.info-content {
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.info-main h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.info-main h3:first-child {
    margin-top: 0;
}

.info-main p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.quick-stats {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quick-stats h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.quick-stat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.quick-stat strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.25rem;
}

.quick-stat p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-color);
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-question h4 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

/* Limitations Section */
.limitations-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.limitations-main h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.limitations-main h3:first-child {
    margin-top: 0;
}

.limitation-list,
.tips-list {
    list-style: none;
    margin: 1.5rem 0;
}

.limitation-list li,
.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.limitation-list li {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.tips-list li {
    background: #dcfce7;
    border-left: 4px solid #10b981;
}

.limitation-list li i {
    color: #f59e0b;
    margin-top: 0.2rem;
}

.tips-list li i {
    color: #10b981;
    margin-top: 0.2rem;
}

.limitations-sidebar .tip-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.tip-box h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box p {
    margin: 0;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools {
    text-align: center;
}

.related-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

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

.related-tool {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.related-tool:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-tool .tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-tool .tool-info {
    flex: 1;
    text-align: left;
}

.related-tool .tool-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.related-tool .tool-info p {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
}

.related-tool .tool-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.related-tool:hover .tool-arrow {
    transform: translateX(5px);
}

.cta-section {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cta-section h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 1.8rem;
    }

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

    /* .tool-sidebar {
        order: -1;
    } */

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

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

    .difficulty-buttons {
        flex-direction: column;
    }

    .card-controls,
    .quiz-controls,
    .review-controls {
        flex-direction: column;
    }

    .info-grid,
    .limitations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-sidebar {
        position: static;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

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

    .related-tool {
        flex-direction: column;
        text-align: center;
    }

    .related-tool .tool-info {
        text-align: center;
    }

    .quick-action-btn:hover {
        transform: none;
    }
}

/* Translation-specific styles */
.translation-controls {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.language-selector {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-selector label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.language-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.language-select:hover {
    border-color: var(--primary-color);
}

.swap-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.translation-interface {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.translation-panel {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.translation-panel:focus-within {
    border-color: var(--primary-color);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.translation-panel textarea {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: transparent;
}

.translation-panel textarea:focus {
    outline: none;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
}

.char-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detected-lang {
    font-weight: 600;
    color: var(--primary-color);
}

.translation-quality {
    font-weight: 600;
}

.translation-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 1rem 0;
}

.translation-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.translate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
}

.translate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.translate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.quick-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quick-actions h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stats-card h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.25rem;
}

.result-value {
    color: var(--text-color);
}

.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-easy {
    background: #dcfce7;
    color: #166534;
}

.score-medium {
    background: #fef3c7;
    color: #92400e;
}

.score-hard {
    background: #fee2e2;
    color: #991b1b;
}

/* Tool Information Section */
.tool-info {
    background: white;
    padding: 80px 0;
}

.info-section {
    margin-bottom: 4rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 0;
}

.info-content {
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.info-main h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.info-main h3:first-child {
    margin-top: 0;
}

.info-main p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.quick-stats {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quick-stats h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.quick-stat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.quick-stat strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.25rem;
}

.quick-stat p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-color);
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-question h4 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

/* Limitations Section */
.limitations-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.limitations-main h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.limitations-main h3:first-child {
    margin-top: 0;
}

.limitation-list,
.tips-list {
    list-style: none;
    margin: 1.5rem 0;
}

.limitation-list li,
.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.limitation-list li {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.tips-list li {
    background: #dcfce7;
    border-left: 4px solid #10b981;
}

.limitation-list li i {
    color: #f59e0b;
    margin-top: 0.2rem;
}

.tips-list li i {
    color: #10b981;
    margin-top: 0.2rem;
}

.limitations-sidebar .tip-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.tip-box h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box p {
    margin: 0;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools {
    text-align: center;
}

.related-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

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

.related-tool {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.related-tool:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-tool .tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-tool .tool-info {
    flex: 1;
    text-align: left;
}

.related-tool .tool-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.related-tool .tool-info p {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
}

.related-tool .tool-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.related-tool:hover .tool-arrow {
    transform: translateX(5px);
}

.cta-section {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cta-section h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 1.8rem;
    }

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

    /* .tool-sidebar {
        order: -1;
    } */

    .translation-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .swap-btn {
        align-self: center;
        margin-top: 0;
        transform: rotate(90deg);
    }

    .swap-btn:hover {
        transform: rotate(270deg) scale(1.1);
    }

    .action-buttons {
        flex-direction: column;
    }

    .quick-action-btn {
        justify-content: center;
    }

    .info-grid,
    .limitations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-sidebar {
        position: static;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

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

    .related-tool {
        flex-direction: column;
        text-align: center;
    }

    .related-tool .tool-info {
        text-align: center;
    }
}

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

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stats-card h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-color);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.25rem;
}

.result-value {
    color: var(--text-color);
}

.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-easy {
    background: #dcfce7;
    color: #166534;
}

.score-medium {
    background: #fef3c7;
    color: #92400e;
}

.score-hard {
    background: #fee2e2;
    color: #991b1b;
}

/* Tool Information Section */
.tool-info {
    background: white;
    padding: 80px 0;
}

.info-section {
    margin-bottom: 4rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 0;
}

.info-content {
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.info-main h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.info-main h3:first-child {
    margin-top: 0;
}

.info-main p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.quick-stats {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quick-stats h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.quick-stat {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat:last-child {
    margin-bottom: 0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.quick-stat strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.25rem;
}

.quick-stat p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-color);
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-question h4 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

/* Limitations Section */
.limitations-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.limitations-main h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.limitations-main h3:first-child {
    margin-top: 0;
}

.limitation-list,
.tips-list {
    list-style: none;
    margin: 1.5rem 0;
}

.limitation-list li,
.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.limitation-list li {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.tips-list li {
    background: #dcfce7;
    border-left: 4px solid #10b981;
}

.limitation-list li i {
    color: #f59e0b;
    margin-top: 0.2rem;
}

.tips-list li i {
    color: #10b981;
    margin-top: 0.2rem;
}

.limitations-sidebar .tip-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.tip-box h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-box p {
    margin: 0;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools {
    text-align: center;
}

.related-intro {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

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

.related-tool {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.related-tool:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-tool .tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-tool .tool-info {
    flex: 1;
    text-align: left;
}

.related-tool .tool-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.related-tool .tool-info p {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
}

.related-tool .tool-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.related-tool:hover .tool-arrow {
    transform: translateX(5px);
}

.cta-section {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cta-section h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 1.8rem;
    }

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

    /* .tool-sidebar {
        order: -1;
    } */

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

    .info-grid,
    .limitations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-sidebar {
        position: static;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

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

    .related-tool {
        flex-direction: column;
        text-align: center;
    }

    .related-tool .tool-info {
        text-align: center;
    }
}
