/* Custom styles for Notion Ricette API */

.navbar-brand {
    font-weight: 600;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.card-header h5,
.card-header h6 {
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 0.5rem;
}

pre {
    background-color: var(--bs-gray-900);
    border: 1px solid var(--bs-gray-700);
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.alert {
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.nav-link.active {
    font-weight: 600;
}

.badge {
    font-size: 0.75rem;
}

.btn i {
    margin-right: 0.25rem;
}

/* API Response styling */
#api-response {
    background-color: var(--bs-gray-900);
    border: 1px solid var(--bs-gray-700);
    border-radius: 0.375rem;
    padding: 1rem;
}

#response-content {
    color: var(--bs-light);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* Form styling improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--bs-gray-600);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Documentation specific styles */
section {
    scroll-margin-top: 2rem;
}

.card-header code {
    font-size: 1rem;
    font-weight: 600;
}

.text-success {
    color: var(--bs-success) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.text-warning {
    color: var(--bs-warning) !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}

/* Table of contents styling */
.nav-link {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.125rem;
}

.nav-link:hover {
    background-color: var(--bs-gray-800);
}

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

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

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