/* ==========================================================================
   Autodesk Dashboard
   ========================================================================== */

/* Project list sidebar */
.autodesk-project-list-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Clickable table rows */
.autodesk-clickable-row {
    cursor: pointer;
}

/* Folder browser content area */
.autodesk-folder-browser-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Table column widths */
.autodesk-col-checkbox {
    width: 30px;
}

.autodesk-col-name {
    width: 28%;
}

.autodesk-col-type {
    width: 7%;
}

.autodesk-col-size {
    width: 9%;
}

.autodesk-col-modified {
    width: 10%;
}

.autodesk-col-version {
    width: 12%;
}

.autodesk-col-status {
    width: 10%;
}

.autodesk-col-actions {
    width: 14%;
}

/* Sortable column headers */
.autodesk-sortable-header {
    cursor: pointer;
    user-select: none;
}

/* Version dropdown */
.autodesk-version-select {
    min-width: 105px;
    font-size: var(--font-size-xs);
}

/* Small spinner inside status badge */
.autodesk-spinner-status {
    width: var(--font-size-xs);
    height: var(--font-size-xs);
}

/* 3D viewer panel */
.autodesk-viewer-panel {
    height: 500px;
}

.autodesk-viewer-tab-content {
    height: 100%;
}

.autodesk-viewer-tab-hidden {
    height: 100%;
    display: none;
}

/* Scrollable tab panels (metadata, properties) */
.autodesk-tab-scroll-panel {
    max-height: 500px;
    overflow-y: auto;
}

/* Modal backdrop */
.autodesk-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* GUID code display */
.autodesk-guid-code {
    font-size: var(--font-size-xs);
}

/* URN code display */
.autodesk-urn-code {
    word-break: break-all;
    font-size: var(--font-size-xs);
}

/* ============================================
   Autodesk Diagnostics
   (migrated from AutodeskDiagnostics/Index.razor.css)
   ============================================ */

.diagnostics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.intro-text {
    background: var(--bs-light);
    border-left: 4px solid var(--bs-primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.intro-text p {
    margin-bottom: 0.5rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.auth-card {
    background: var(--bs-light);
}

.test-section {
    border: 1px solid var(--bs-border-color);
    overflow: hidden;
    max-width: 100%;
}

.test-section .card-body {
    overflow: hidden;
    max-width: 100%;
}

.test-section.border-success {
    border-color: var(--bs-success) !important;
    border-width: 2px;
}

.test-section.border-danger {
    border-color: var(--bs-danger) !important;
    border-width: 2px;
}

.test-section .card-header {
    background: var(--bs-light);
    padding: 0.75rem 1rem;
}

.section-header {
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0;
}

.section-header:hover {
    color: var(--bs-primary);
}

.toggle-icon {
    display: inline-block;
    width: 1rem;
    font-size: 0.75rem;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    overflow: hidden;
    width: 100%;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    color: inherit;
    background: transparent;
    overflow-wrap: anywhere;
}

.code-block div {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.request-container,
.response-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.request-info {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-url {
    word-break: break-all;
    white-space: normal;
}

.response-textarea {
    width: 100%;
    max-width: 100%;
    height: 150px;
    background: #1e1e1e;
    color: #d4d4d4;
    border: none;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    resize: vertical;
    box-sizing: border-box;
}

.response-textarea-full {
    height: 300px;
}

.parsed-block {
    padding: 0.5rem;
    background: var(--bs-light);
    border-radius: 4px;
}

.parsed-list {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.parsed-list li {
    margin-bottom: 0.25rem;
}

.diagnostics-container .input-group {
    max-width: 400px;
}

.diagnostics-container .input-group-text {
    min-width: 80px;
}

/* ============================================
   Autodesk Tools Dashboard
   (migrated from AutodeskTools/Dashboard.razor.css)
   ============================================ */

.extraction-settings-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.extraction-option {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.extraction-option:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.extraction-option.selected {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #f8f9ff 0%, #e7f1ff 100%);
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.15);
}

.extraction-option .option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.extraction-option .option-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.extraction-option .option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.extraction-option .feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.extraction-option .feature-tag.feature-pro {
    background: #d1e7dd;
    color: #0f5132;
}

.extraction-option .feature-tag.feature-neutral {
    background: #fff3cd;
    color: #664d03;
}

.extraction-option .feature-tag.feature-con {
    background: #f8d7da;
    color: #842029;
}

.extraction-option .option-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.extraction-option .coordinates-option {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 0 -0.5rem -0.5rem -0.5rem;
}

.extraction-option .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
}

.extraction-option .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
    vertical-align: middle;
}

.preview-header {
    background-color: #cfe2ff;
}

.model-row-selected {
    background-color: #d0e7ff;
    border-left: 4px solid #0d6efd;
    font-weight: 600;
}

.version-row-selected {
    background-color: #d0e7ff;
    border-left: 4px solid #0d6efd;
    font-weight: 600;
}

.version-row {
    background-color: #f8f9fa;
}
