/* Custom styles for JSON-LD Validation API */

/* Code blocks and pre elements */
pre {
    background-color: var(--bs-secondary) !important;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.4;
    overflow-x: auto;
}

code {
    background-color: var(--bs-secondary);
    color: var(--bs-body-color);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* API key display styling */
.api-key-display {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
    background-color: var(--bs-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--bs-border-color);
}

/* Badge styling for HTTP methods */
.badge {
    font-size: 0.75em;
    font-weight: 600;
}

/* Card styling improvements */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

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

/* Table improvements */
.table-dark {
    --bs-table-bg: var(--bs-dark);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert .feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/* Button improvements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn .feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/* Navbar improvements */
.navbar-brand .feather {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
}

/* Modal improvements */
.modal-content {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
}

/* Form improvements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

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

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

/* Responsive improvements */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .api-key-display {
        font-size: 0.75rem;
    }
    
    pre {
        font-size: 0.75rem;
    }
}

/* Utility classes */
.text-monospace {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}

.bg-code {
    background-color: var(--bs-secondary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--bs-border-color);
}

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

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

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

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

/* API endpoint cards */
.endpoint-card {
    transition: transform 0.2s ease-in-out;
}

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

/* Usage statistics */
.usage-stat {
    text-align: center;
}

.usage-stat .feather {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

/* Copy feedback */
.copy-feedback {
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
