/**
 * Perspective Dashboard Styles
 * Custom styles for Perspective.js integration
 */

/* Modal customizations */
#perspectiveModal .modal-header {
    padding: 1rem 1.5rem;
}

#perspectiveModal .modal-body {
    overflow: hidden;
    position: relative;
}

#perspectiveModal .modal-footer {
    padding: 0.75rem 1.5rem;
    background-color: #f8f9fa;
}

/* Loading spinner */
#perspectiveLoading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Perspective viewer container */
#perspectiveViewerContainer {
    position: relative;
    overflow: hidden;
}

/* Perspective viewer customizations */
perspective-viewer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Ajustar altura do viewer no modal fullscreen */
#perspectiveModal .modal-fullscreen #perspectiveViewerContainer {
    height: calc(100vh - 180px) !important;
}

/* Botão Dashboard nos datasets */
.btn-perspective-dashboard {
    position: relative;
    transition: all 0.3s ease;
}

.btn-perspective-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Badge "Beta" no botão */
.btn-perspective-dashboard .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 2px 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    #perspectiveModal .modal-footer small {
        display: none;
    }
    
    #perspectiveViewerContainer {
        height: calc(100vh - 150px) !important;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] #perspectiveModal .modal-footer {
    background-color: #212529;
    border-top: 1px solid #495057;
}

[data-bs-theme="dark"] perspective-viewer {
    --theme-bg-color: #212529;
    --theme-text-color: #f8f9fa;
}

/* Smooth transitions */
#perspectiveContent,
#perspectiveLoading {
    transition: opacity 0.3s ease-in-out;
}

/* Tooltip customization */
.perspective-tooltip {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 9999;
}

/* Export buttons */
.perspective-export-btn {
    margin-left: 0.5rem;
}

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