/* HTML Formatter Tool Styles */
.html-formatter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d3748;
    line-height: 1.6;
}

/* Hero Section */
.html-formatter-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.html-formatter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.html-formatter-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Section */
.html-formatter-tool-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 3rem;
}

.html-formatter-input-container,
.html-formatter-output-container {
    margin-bottom: 2rem;
}

.html-formatter-input-header,
.html-formatter-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.html-formatter-input-header h3,
.html-formatter-output-header h3 {
    font-size: 1.25rem;
    color: #4a5568;
    margin: 0;
}

.html-formatter-sample-button {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.html-formatter-sample-button:hover {
    background: #cbd5e0;
}

.html-formatter-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border 0.3s ease;
    background: #f8fafc;
    color: #1a202c;
}

.html-formatter-textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.html-formatter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.html-formatter-main-button {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(110, 142, 251, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.html-formatter-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(110, 142, 251, 0.4);
}

.html-formatter-main-button:active {
    transform: translateY(0);
}

.html-formatter-button-icon {
    font-size: 1.2rem;
}

.html-formatter-options {
    display: flex;
    gap: 1.5rem;
}

.html-formatter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.html-formatter-option input {
    cursor: pointer;
}

.html-formatter-output-actions {
    display: flex;
    gap: 0.75rem;
}

.html-formatter-copy-button,
.html-formatter-download-button,
.html-formatter-clear-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #e2e8f0;
    background: white;
}

.html-formatter-copy-button:hover {
    background: #ebf8ff;
    border-color: #90cdf4;
    color: #3182ce;
}

.html-formatter-download-button:hover {
    background: #f0fff4;
    border-color: #9ae6b4;
    color: #38a169;
}

.html-formatter-clear-button:hover {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #e53e3e;
}

.html-formatter-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #718096;
}

/* Features Section - 2x2 Grid */
.html-formatter-features {
    margin-bottom: 3rem;
}

.html-formatter-section-title {
    font-size: 1.75rem;
    color: #2d3748;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.html-formatter-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 3px;
}

.html-formatter-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.html-formatter-feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 20px rgba(110, 142, 251, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eef2ff;
    position: relative;
    overflow: hidden;
}

.html-formatter-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(110, 142, 251, 0.15);
}

.html-formatter-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #6e8efb, #a777e3);
}

.html-formatter-feature-card-1::before { background: #6e8efb; }
.html-formatter-feature-card-2::before { background: #a777e3; }
.html-formatter-feature-card-3::before { background: #6e8efb; }
.html-formatter-feature-card-4::before { background: #a777e3; }

.html-formatter-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.html-formatter-feature-card h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 0.8rem;
}

.html-formatter-feature-card p {
    color: #4a5568;
    margin: 0;
    line-height: 1.7;
}

/* Enhanced Content Section */
.html-formatter-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.html-formatter-content-main {
    display: grid;
    gap: 1.5rem;
}

.html-formatter-content-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f4ff;
}

.content-card-1 {
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.03), rgba(167, 119, 227, 0.03));
}

.content-card-2 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
}

.html-formatter-content-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.html-formatter-content-card h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.html-formatter-content-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 3px;
}

.html-formatter-content-card p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.html-formatter-feature-list {
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
}

.html-formatter-feature-list li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
    color: #4a5568;
    line-height: 1.7;
}

.html-formatter-feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6e8efb;
    font-weight: bold;
}

/* Sidebar Styles */
.html-formatter-content-sidebar {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.html-formatter-tip-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f4ff;
    background: linear-gradient(135deg, rgba(255, 241, 235, 0.5), rgba(255, 241, 235, 0.5));
    border-left: 4px solid #ff7849;
}

.html-formatter-tip-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.html-formatter-tip-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    color: #ff7849;
}

.html-formatter-tip-card h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin: 0;
}

.html-formatter-tip-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.html-formatter-tip-content p::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff7849;
}

.html-formatter-benefits {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f4ff;
}

.html-formatter-benefits h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.html-formatter-benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #4a5568;
}

.html-formatter-benefit-icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    color: #6e8efb;
}

/* FAQ Section */
.html-formatter-faq-section {
    margin-bottom: 3rem;
}

.html-formatter-faq-container {
    border-radius: 10px;
    overflow: hidden;
}

.html-formatter-faq-item {
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.html-formatter-faq-item:last-child {
    border-bottom: none;
}

.html-formatter-faq-question {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.html-formatter-faq-question:hover {
    background: #f8fafc;
}

.html-formatter-faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #4a5568;
}

.html-formatter-faq-toggle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6e8efb;
}

.html-formatter-faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.html-formatter-faq-item.active .html-formatter-faq-answer {
    max-height: 1000px;
    padding: 0 1.25rem 1.25rem;
}

.html-formatter-faq-answer p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.html-formatter-faq-answer ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Resources Section */
.html-formatter-resources {
    margin-bottom: 2rem;
}

.html-formatter-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.html-formatter-resource-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.html-formatter-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.html-formatter-resource-card h3 {
    font-size: 1.1rem;
    color: #6e8efb;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.html-formatter-resource-card p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .html-formatter-content-grid {
        grid-template-columns: 1fr;
    }
    
    .html-formatter-content-sidebar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .html-formatter-features-grid {
        grid-template-columns: 1fr;
    }
    
    .html-formatter-content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .html-formatter-title {
        font-size: 2rem;
    }
    
    .html-formatter-subtitle {
        font-size: 1rem;
    }
    
    .html-formatter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .html-formatter-options {
        justify-content: space-between;
    }
    
    .html-formatter-output-actions {
        flex-wrap: wrap;
    }
    
    .html-formatter-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .html-formatter-tool-section {
        padding: 1.5rem;
    }
    
    .html-formatter-input-header,
    .html-formatter-output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .html-formatter-section-title {
        font-size: 1.5rem;
    }
}




.html-formatter-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.html-formatter-toast.show {
    opacity: 1;
}

.html-formatter-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.html-formatter-main-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #cccccc;
}

.html-formatter-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.html-formatter-stats {
    font-family: monospace;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}