/* Graph Modal */
.graph-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.graph-modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Graph Canvas Container */
.graph-canvas-container {
    flex: 1;
    position: relative;
    min-height: 450px;
    max-height: 600px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px 20px 30px 20px;
    margin-bottom: 8px;
}

.graph-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Graph Loading State */
.graph-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.3em;
    z-index: 10;
}

.graph-loading .spinner {
    margin: 0 auto 20px;
}

/* Graph Error State */
.graph-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.5);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    z-index: 10;
}

.graph-error i {
    font-size: 3em;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.graph-error div {
    font-size: 1.1em;
    margin-top: 10px;
}

/* Graph Info */
.graph-info {
    background: rgba(79, 172, 254, 0.2);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    text-align: center;

}

.graph-info p {
    margin: 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.9;
}

.graph-info i {
    font-size: 1.1em;
    color: #4FACFE;
}

/* Parameter Selection Grid */
.parameter-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.parameter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.parameter-checkbox:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 172, 254, 0.5);
}

.parameter-checkbox.selected {
    background: rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.8);
}

.parameter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4FACFE;
}

.parameter-checkbox label {
    cursor: pointer;
    font-size: 0.95em;
    flex: 1;
    user-select: none;
}
