/* Custom styles for Medical Bill Decoder */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.code-card {
    transition: transform 0.2s ease-in-out;
}

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

.payment-amount {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--bs-success);
}

.code-display {
    font-family: 'Courier New', monospace;
    background-color: var(--bs-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

.category-badge {
    font-size: 0.875rem;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* AdSense styling */
.ad-container {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-gray-100);
    border: 1px dashed var(--bs-gray-300);
    border-radius: var(--bs-border-radius);
}

/* Code highlighting */
code {
    background-color: var(--bs-gray-800);
    color: var(--bs-light);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

/* Sticky sidebar */
.sticky-top {
    top: 2rem;
}

/* Result cards styling */
.result-card {
    border-left: 4px solid var(--bs-primary);
    margin-bottom: 1rem;
}

.result-card:last-child {
    margin-bottom: 0;
}
