/* Custom styles for FHIR Explorer - HealthTrixss Theme */
:root {
    --primary-blue: #2E456B;
    --accent-orange: #FFA002;
    --dark-teal: #277493;
    --tan-accent: #E8F0F5;
    --light-orange: #FFCA4B;
    --light-green: #88ABA2;
    --light-teal: #67AA5F;
    --light-grey: #ABAFAS;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
}

body {
    background-color: white;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Code styling */
pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.4;
}

code {
    color: #333;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* JSON syntax highlighting - HealthTrixss Theme */
.json-key {
    color: var(--primary-blue);
}

.json-string {
    color: var(--dark-teal);
}

.json-number {
    color: var(--light-teal);
}

.json-boolean {
    color: var(--accent-orange);
}

.json-null {
    color: #8b949e;
}

/* Card enhancements */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: white;
}

.card-header {
    background-color: #E8F0F5;
    border-bottom: 1px solid #e9ecef;
}

/* Button styling - HealthTrixss Theme */
.btn-primary {
    background-color: #2E456B;
    border-color: #2E456B;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #277493;
    border-color: #277493;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 69, 107, 0.3);
    color: #FFFFFF;
}

.btn-outline-primary {
    color: #2E456B;
    border-color: #2E456B;
    border-radius: 8px;
    font-weight: 600;
    background-color: #FFFFFF;
}

.btn-outline-primary:hover {
    background-color: #2E456B;
    border-color: #2E456B;
    color: #FFFFFF;
}

/* Loading animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Form styling - HealthTrixss Theme */
.form-control:focus,
.form-select:focus {
    border-color: #2E456B;
    box-shadow: 0 0 0 0.2rem rgba(46, 69, 107, 0.25);
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #ABAFAS;
}

/* Navbar enhancement - HealthTrixss Style */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2E456B !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 12px;
}

.navbar-light {
    background-color: #FFFFFF !important;
    padding: 1rem 0;
}

.navbar-text {
    color: #277493 !important;
    font-weight: 500;
}

.navbar {
    box-shadow: 0 2px 20px rgba(46, 69, 107, 0.1);
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    pre {
        font-size: 0.75rem;
        max-height: 400px;
    }
}

/* Scrollbar styling for webkit browsers */
pre::-webkit-scrollbar {
    width: 8px;
}

pre::-webkit-scrollbar-track {
    background: #f1f3f4;
}

pre::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* Toast notifications */
.toast {
    border: 1px solid #e9ecef;
}

.toast-header {
    background-color: #f8f9fa;
}

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

.status-success {
    background-color: var(--bs-success);
}

.status-error {
    background-color: var(--bs-danger);
}

.status-warning {
    background-color: var(--bs-warning);
}

/* API endpoint styling */
.endpoint-badge {
    font-family: monospace;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--bs-gray-800);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.25rem;
}
