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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

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

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.text-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.text-box {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-box h2 {
    margin-bottom: 15px;
    color: #444;
    font-size: 1.3rem;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

button {
    padding: 12px 25px;
    background: #6e8efb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #5a7de4;
}

#clear-btn {
    background: #ff6b6b;
}

#clear-btn:hover {
    background: #ee5253;
}

.results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.results h2 {
    margin-bottom: 15px;
    color: #444;
}

.result-container {
    display: flex;
    gap: 20px;
}

.result-box {
    flex: 1;
}

.result-box h3 {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1rem;
}

.result-text {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 200px;
    font-family: monospace;
    white-space: pre-wrap;
    background-color: #f9f9f9;
    overflow: auto;
    max-height: 400px;
}

.diff-added {
    background-color: #d4edda;
}

.diff-removed {
    background-color: #ffcccc;
}

footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ddd;
    margin: 0 15px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #6e8efb;
}

.info-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    color: #6e8efb;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.info-section h3 {
    color: #555;
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.info-section p, .info-section li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-section ol, .info-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #6e8efb;
}

.benefit-item h3 {
    color: #6e8efb;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section h2 {
        font-size: 1.4rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .text-inputs {
        flex-direction: column;
    }
    
    .result-container {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        margin: 5px 0;
    }
}
