* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.comparison-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.text-input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group h3 {
    margin-bottom: 10px;
    color: #555;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
	background-color: #535353;
    color: white;
}
.print-controls {
	margin-left: auto;
}
#compareBtn {
    background-color: #4CAF50;
    color: white;
}

#compareBtn:hover {
    background-color: #45a049;
}

#clearBtn {
    background-color: #f44336;
    color: white;
}

#clearBtn:hover {
    background-color: #da190b;
}
#identicalMessage {
	background-color: #f8d7da;
	color: #155724;
	text-align: center;
	font-size: 1.15rem;
	font-weight: bold;
	margin: 10px 0;
}
.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-weight: bold;
    color: #666;
}

.diff-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.diff-column h4 {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px 5px 0 0;
}

.diff-content {
    border: 1px solid #ddd;
    padding: 15px;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    background-color: #fafafa;
    border-radius: 0 0 5px 5px;
    line-height: 1.6;
}

/* Highlighting styles */
.added {
    background-color: #d4edda;
    color: #155724;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.deleted {
    background-color: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

.char-added {
    background-color: #b3f0b3;
    color: #0d5a0d;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: bold;
}

.char-deleted {
    background-color: #f5b3b6;
    color: #5a0d10;
    text-decoration: line-through;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .text-input-section,
    .diff-display {
        grid-template-columns: 1fr;
    }
    
    .controls {
        justify-content: center;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
}
