  :root {
            --primary:#274c77;
            --primary-dark:#24558d;
            --primary-light:#6096ba;
            --error: #ef4444;
            --warning: #f59e0b;
            --suggestion: #10b981;
            --info: #6096ba;
            --bg: #f9fafb;
            --bg-dark: #f3f4f6;
            --text: #111827;
            --text-light: #6b7280;
            --border: #e5e7eb;
            --card-bg: #ffffff;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --radius: 0.5rem;
            --transition: all 0.2s ease-in-out;
        }

        /* Dark mode variables */
        @media (prefers-color-scheme: dark) {
            :root {
                --bg: #1a1a1a;
                --bg-dark: #2d2d2d;
                --text: #f3f4f6;
                --text-light: #d1d5db;
                --border: #4b5563;
                --card-bg: #262626;
                --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
            }
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: url('/theme/image/background.svg') no-repeat center center fixed;
            background-size: cover;
            background-color: #f0f3fb;
            line-height: 1.6;
            color: var(--text);
            min-height: 100vh;
            padding: 0;
            padding-top: 70px;
        }

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

        .header-baba {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            background: linear-gradient(90deg, var(--primary), var(--primary-light));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: 700;
        }

        .subtitle {
            font-size: 1.1rem;
            color: var(--text-light);
            max-width: 700px;
            margin: 0 auto;
        }

        .checker-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        @media (max-width: 768px) {
            .checker-grid {
                grid-template-columns: 1fr;
            }
        }

        .text-card, .results-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .card-header {
            padding: 1rem 1.5rem;
            background: var(--primary);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-title {
            font-weight: 600;
            font-size: 1.1rem;
        }

        .stats {
            display: flex;
            gap: 1rem;
            font-size: 0.9rem;
        }

        .stat {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .stat i {
            font-size: 0.8rem;
        }

        .card-body {
            padding: 1.5rem;
        }

        #text-input {
            width: 100%;
            min-height: 400px;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            resize: none;
            font-size: 1rem;
            line-height: 1.6;
            background: var(--card-bg);
            color: var(--text);
            transition: var(--transition);
        }

        #text-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
        }

        .controls {
            display: flex;
            justify-content: space-between;
            margin-top: 1rem;
            gap: 1rem;
        }

        .btn {
            padding: 0.6rem 1.2rem;
            border-radius: var(--radius);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

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

        .btn-primary:hover {
            background: var(--primary-dark);
        }

        .btn-secondary {
            background: var(--bg-dark);
            color: var(--text);
        }

        .btn-secondary:hover {
            background: #e5e7eb;
        }

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

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

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

        .error-item {
            padding: 1rem;
            border-radius: var(--radius);
            margin-bottom: 1rem;
            background: var(--card-bg);
            border-left: 4px solid var(--error);
            transition: var(--transition);
            cursor: pointer;
        }

        .error-item:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .error-item.grammar {
            border-left-color: var(--warning);
        }

        .error-item.style {
            border-left-color: var(--suggestion);
        }

        .error-item.typo {
            border-left-color: var(--info);
        }

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

        .error-type {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            background: var(--error);
            color: white;
        }

        .error-type.grammar {
            background: var(--warning);
        }

        .error-type.style {
            background: var(--suggestion);
        }

        .error-type.typo {
            background: var(--info);
        }

        .error-message {
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .error-context {
            background: rgba(0, 0, 0, 0.05);
            padding: 0.5rem;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            font-family: monospace;
            font-size: 0.95rem;
        }

        .error-context mark {
            background: rgba(239, 68, 68, 0.3);
            padding: 0 2px;
            border-radius: 2px;
        }

        .suggestions {
            margin-top: 0.5rem;
        }

        .suggestions-title {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 0.3rem;
        }

        .suggestion-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .suggestion {
            background: var(--bg-dark);
            padding: 0.3rem 0.6rem;
            border-radius: 4px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .suggestion:hover {
            background: var(--primary);
            color: white;
        }

        .error-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.8rem;
        }

        .error-btn {
            padding: 0.3rem 0.6rem;
            font-size: 0.8rem;
            border-radius: 4px;
            background: none;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .error-btn:hover {
            background: var(--bg-dark);
        }

        .error-btn i {
            font-size: 0.7rem;
        }

        .no-errors {
            text-align: center;
            padding: 2rem;
            color: var(--suggestion);
            font-weight: 500;
        }

        .hidden {
            display: none !important;
        }

        #results-container {
            max-height: 600px;
            overflow-y: auto;
            padding-right: 0.5rem;
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        /* Tooltip */
        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: var(--text);
            color: var(--bg);
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.8rem;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            h1 {
                font-size: 1.8rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .card-header {
                padding: 0.8rem 1rem;
            }
            
            .card-body {
                padding: 1rem;
            }
            
            #text-input {
                min-height: 300px;
            }
        }

        /* Animation for error highlighting */
        @keyframes highlight {
            0% { background-color: rgba(239, 68, 68, 0.3); }
            100% { background-color: transparent; }
        }

        .highlight-error {
            animation: highlight 2s;
        }

/* ===== Section Styles ===== */
.info-section, .benefits-section, .tips-section, 
.testimonials-section, .faq-section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4a5568;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ===== How It Works Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6096ba 0%, #274c77 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #274c77;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* ===== Benefits Section ===== */
.benefits-section {
    background: #f7fafc;
}

.benefits-content {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-list {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    color: #4299e1;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #4a5568;
    line-height: 1.6;
}

.benefits-image {
    flex: 1 1 400px;
    text-align: center;
}

.benefits-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* ===== Tips Section ===== */
.tips-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: #f7fafc;
}

.accordion-header span {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.125rem;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 1000px;
}

.accordion-content p, .accordion-content ul {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

.accordion-content strong {
    color: #2d3748;
}

.accordion-content ul {
    padding-left: 1.5rem;
}

.cta-box {
    background: linear-gradient(135deg, #6096ba 0%, #274c77 100%);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    color: white;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ===== Testimonials Section ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.testimonial-content {
    padding: 1.5rem;
}

.rating {
    color: #f6ad55;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-author h4 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: #718096;
}

/* ===== FAQ Section ===== */
.faq-section {
    background: #f7fafc;
}

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

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* ===== Final CTA Section ===== */
.final-cta {
    text-align: center;
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #274c77 0%, #a3cef1 100%);
    color: white;
}

.final-cta h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #274c77;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2f6aad;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
    }
    
    .benefit-item i {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .testimonials-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta {
        padding: 3rem 1rem;
    }
    
    .final-cta h2 {
        font-size: 1.75rem;
    }
}

/* Animation for accordion icons */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}