﻿.diagram-container {
    font-family: 'Segoe UI', Verdana, sans-serif;
    margin: 20px 0;
    overflow: hidden;
}

#diagramContainer {
    position: relative;
    width: 100%;
    height: 600px;
}

#myDiagramDiv {
    border: solid 1px #cfd8dc;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    overflow: auto;
}

#myDiagramDiv canvas {
    display: block; 
    outline: none !important;
}

.controls {
    margin: 10px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background-color: rgba(255,255,255,0.9);
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.controls select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.controls button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.controls button:hover {
    background-color: #e0e0e0;
}

.controls button.active {
    background-color: #343a40;
    color: white;
    border-color: #343a40;
}

.fullscreen .diagram-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    margin: 0;
    background-color: #f8fafc;
}

.fullscreen #diagramContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
}

.fullscreen #myDiagramDiv {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    overflow: auto;
}

.fullscreen .controls {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    background-color: rgba(255,255,255,0.95);
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background-color: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
