/* Custom styles for Data Comparison Tool */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Card styling */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

/* File input styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* List group enhancements */
.list-group-item {
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

.list-group-item:hover {
    border-left-color: var(--primary-color);
    background-color: #f8f9fa;
}

/* Table styling */
.table {
    background-color: white;
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Alert enhancements */
.alert {
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* Footer styling */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    .card {
        page-break-inside: avoid;
    }
}

/* Toast notification styles */
.toast {
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    font-weight: 600;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-body {
    font-size: 0.95rem;
}

/* Toast animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.show {
    animation: slideInRight 0.3s ease-out;
}

/* Export file card highlighting */
.border-success {
    border-width: 2px !important;
}

.card.border-success {
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.15) !important;
}

.card.border-success:hover {
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.25) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Success alert animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    animation: fadeInDown 0.5s ease-out;
}
