/* =====================================================================
   Terminology / Data Dictionary Styles
   ===================================================================== */

/* #view-terminology display is handled by console.css .view/.view.active */
.terminology-container {
    height: 100%;
}

.terminology-header {
    flex: 0 0 auto;
}

.terminology-stat {
    min-width: 80px;
    text-align: center;
}

.terminology-toolbar {
    flex: 0 0 auto;
}

.terminology-table-container {
    flex: 1 1 auto;
}

.terminology-table {
    border-collapse: collapse;
    font-size: 13px;
    width: 100%;
}

.terminology-table th,
.terminology-table td {
    border-bottom: 1px solid #e2e8f0;
}

.dark .terminology-table th,
.dark .terminology-table td {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.terminology-thead {
    background: #f8fafc;
}

.dark .terminology-thead {
    background: #1a1a1a;
}

.terminology-row:hover {
    background: #f8fafc;
}

.dark .terminology-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.terminology-empty,
.terminology-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
    color: #64748b;
}

.dark .terminology-empty,
.dark .terminology-loading {
    color: #94a3b8;
}

.terminology-empty i,
.terminology-loading i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.terminology-footer {
    flex: 0 0 auto;
}

.terminology-modal-panel {
    animation: terminologyModalIn 0.2s ease-out;
}

@keyframes terminologyModalIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.terminology-field:focus {
    box-shadow: 0 0 0 2px rgba(53, 168, 91, 0.2);
}

/* Pagination buttons */
#terminology-prev-page,
#terminology-next-page {
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}

#terminology-prev-page:disabled,
#terminology-next-page:disabled {
    cursor: not-allowed;
}

/* Scrollbars */
.terminology-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.terminology-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.terminology-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark .terminology-table-container::-webkit-scrollbar-thumb {
    background: #475569;
}

.terminology-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark .terminology-table-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .terminology-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .terminology-stat {
        flex: 1;
    }
}
