@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
        monospace;
}

#matrix-code {
    position: absolute;
    top: 0;
    left: 0;
}

.tooltip {
    position: absolute;
    z-index: 10;
    visibility: hidden;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.react-flow__container {
    height: 100%;
    overflow: auto;
}

.graph-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.graph-scroll-indicator:hover {
    opacity: 1;
}

.react-flow__node {
    transition: box-shadow 0.3s ease;
}

.react-flow__node:hover {
    box-shadow: 0 0 0 2px #ff9800;
}

.react-flow__edge {
    transition: stroke 0.3s ease;
}

.react-flow__edge:hover {
    stroke: #ff9800 !important;
    stroke-width: 3px !important;
}