:root {
    --primary-color: #0d6efd;
    --danger-color: #dc3545;
    --success-color: #198754;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-body {
    padding: 2rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem 0;
}

.list-group-item:first-child {
    border-top: none;
}

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

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.violation-card {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.violation-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.diff-section {
    height: 100%;
}

.diff-header {
    font-size: 0.95rem;
    font-weight: 600;
}

.diff-content {
    min-height: 150px;
    position: relative;
}

.original-section .diff-content {
    background-color: #fff5f5 !important;
}

.corrected-section .diff-content {
    background-color: #f0fdf4 !important;
}

.text-content {
    line-height: 1.8;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.copy-btn {
    transition: all 0.2s;
}

.copy-btn:hover {
    transform: translateY(-1px);
}

.copy-btn.copied {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

footer {
    margin-top: auto;
}

.spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 991px) {
    .diff-section {
        margin-bottom: 1rem;
    }
}

@media print {
    .btn, .navbar, footer, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .violation-card {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

.alert {
    border-radius: 8px;
}

.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.text-truncate {
    max-width: 400px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.violation-card {
    animation: fadeIn 0.3s ease-in-out;
}

.violation-card:nth-child(1) { animation-delay: 0.1s; }
.violation-card:nth-child(2) { animation-delay: 0.2s; }
.violation-card:nth-child(3) { animation-delay: 0.3s; }
.violation-card:nth-child(4) { animation-delay: 0.4s; }
.violation-card:nth-child(5) { animation-delay: 0.5s; }
