/* CSS Formatter Tool Styles */
.css-formatter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.css-formatter-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.css-formatter-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.css-formatter-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.css-formatter-tool {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.css-formatter-tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.css-formatter-tool-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #495057;
}

.css-formatter-actions {
    display: flex;
    gap: 10px;
}

.css-formatter-textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: none;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #f8f9fa;
    color: #495057;
    border-radius: 0 0 5px 5px;
}

.css-formatter-textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px #6e8efb;
}

.css-formatter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 15px;
}

.css-formatter-options {
    display: flex;
    gap: 15px;
}

.css-formatter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.css-formatter-option input {
    margin: 0;
}

.css-formatter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.css-formatter-btn.primary {
    background-color: #6e8efb;
    color: white;
}

.css-formatter-btn.primary:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
}

.css-formatter-btn.secondary {
    background-color: #e9ecef;
    color: #495057;
}

.css-formatter-btn.secondary:hover {
    background-color: #dee2e6;
}

.css-formatter-btn.success {
    background-color: #4bb543;
    color: white;
}

.css-formatter-btn.success:hover {
    background-color: #3fa237;
}

.css-formatter-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.css-formatter-info {
    margin-bottom: 40px;
}

.css-formatter-article {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.css-formatter-article h2 {
    color: #343a40;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.css-formatter-article p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #495057;
}

.css-formatter-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.css-formatter-features h3 {
    margin-top: 0;
    color: #343a40;
}

.css-formatter-features ul {
    padding-left: 20px;
}

.css-formatter-features li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.css-formatter-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.css-formatter-benefit-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.css-formatter-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.css-formatter-benefit-card h3 {
    margin-top: 0;
    color: #343a40;
}

.css-formatter-steps {
    padding-left: 20px;
}

.css-formatter-steps li {
    margin-bottom: 15px;
    line-height: 1.5;
}

.css-formatter-tip-box {
    background: #e3f2fd;
    border-left: 4px solid #6e8efb;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.css-formatter-tip-box h3 {
    margin-top: 0;
    color: #1976d2;
}

.css-formatter-faq {
    margin-bottom: 40px;
}

.css-formatter-faq h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #343a40;
    font-size: 1.8rem;
}

.css-formatter-faq-item {
    background: white;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.css-formatter-faq-item h3 {
    margin-top: 0;
    color: #343a40;
}

/* Responsive Design */
@media (max-width: 768px) {
    .css-formatter-title {
        font-size: 2rem;
    }
    
    .css-formatter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .css-formatter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .css-formatter-article {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .css-formatter-title {
        font-size: 1.8rem;
    }
    
    .css-formatter-subtitle {
        font-size: 1rem;
    }
    
    .css-formatter-tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .css-formatter-stats {
        width: 100%;
        justify-content: space-between;
    }
}