/* Custom styles for CiteStrike */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom focus styles */
button:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 125, 246, 0.1);
}

/* File upload drag states */
.drag-over {
    border-color: #2196F3 !important;
    background-color: rgba(33, 150, 243, 0.05) !important;
}

/* Gauge animation */
.gauge-arc {
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    animation: gauge-fill 2s ease-out forwards;
}

@keyframes gauge-fill {
    to {
        stroke-dashoffset: 0;
    }
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Badge styles */
.verification-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verification-badge.green {
    background-color: #D1FAE5;
    color: #065F46;
}

.verification-badge.yellow {
    background-color: #FEF3C7;
    color: #92400E;
}

.verification-badge.red {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Citation and quote result styling */
.result-item {
    border-left: 4px solid transparent;
    padding-left: 1rem;
}

.result-item.valid {
    border-left-color: #10B981;
    background-color: #F0FDF4;
}

.result-item.invalid {
    border-left-color: #EF4444;
    background-color: #FEF2F2;
}

/* Progress bar styling */
.progress-bar {
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D47A1, #2196F3);
    transition: width 0.3s ease;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button variations */
.btn-primary {
    background-color: #0D47A1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #1565C0;
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #1976D2;
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-indicator.green {
    background-color: #10B981;
}

.status-indicator.yellow {
    background-color: #F59E0B;
}

.status-indicator.red {
    background-color: #EF4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .gauge svg {
        width: 150px;
        height: 90px;
    }
    
    .score-breakdown {
        flex-direction: column;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}
